Use unshare to put chroot commands in own pid namespace.
Bug 1645680 showed problems when a process started detached and
was left running. This starts processes in a chroot in their own
pid namespace, so that the process is pid 1. Then, its children
are killed when it exits.
Also, backed out the work around changes made for 1645680.