Support for unshare from self, with a bunch of temporary fixes to overcome configuration problems with file actions