shared-mem-locks: port rootinit/childinit methods - compiling, not wired up yet