um: Fix waitpid() usage in helper code