namespaces: add a simple entry point for isolating tools

Pull some of the unshare logic out of cros_sdk and into the namespaces
library.  This lets other programs more easily create namespaces w/out
having to copy & paste the same boiler plate and fallback logic.

BUG=None
TEST=`./cbuildbot/run_tests` works

Change-Id: Ia1d327405707d4ac4969b31c9a401099ac3112d0
Reviewed-on: https://chromium-review.googlesource.com/231962
Reviewed-by: Chris Masone <cmasone@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cros_sdk.py b/scripts/cros_sdk.py
index 0a92c4e..bb4aeb3 100644
--- a/scripts/cros_sdk.py
+++ b/scripts/cros_sdk.py
@@ -414,7 +414,7 @@
     # We must set up the cgroups mounts before we enter our own namespace.
     # This way it is a shared resource in the root mount namespace.
     cgroups.Cgroup.InitSystem()
-    namespaces.Unshare(namespaces.CLONE_NEWNS | namespaces.CLONE_NEWUTS)
+    namespaces.SimpleUnshare()
 
 
 def _CreateParser(sdk_latest_version, bootstrap_latest_version):