Break out the sysctl glue to external functions.
Dirty - but sysctl -a (which doesn't yet work) requires allproc_lock.