Reuse _wait by allowing it to take multiple pids
Fix hang sometimes in parallel_run/sanity check when reap_children
returns early.