process: extend Process API further and add more Process states.
posix: rework waitpid so it handles multiple waiters for the same process better