mnt: Refactor the logic for mounting sysfs and proc in a user namespace