fix the order of setns()

You cannot attach to namespaces in random order.
If you enter the mnt namespace before pid your procfs will go nuts.
Note that readdir() doesn't guarantee any ordering.
You can probably remove at least a few headers without this code.