SwitchRoot changes path to be the root of the mount tree and changes the
current working directory to the new root.
This function bind-mounts onto path; it is the caller's responsibility to set
the desired propagation mode of path's parent mount beforehand to prevent
unwanted propagation into different mount namespaces.