mount: fix mounting of detached mounts onto targets that reside on shared mounts