kboot: Implement getpid(2)
Add host_getpid() so we can know if we're running as init(8) or not. If
we are, we may chose to do early system setup / sanity operations.
Sponsored by: Netflix
(cherry picked from commit 764780294f1df220174c1eb2208c0774d685d594)