Fix bug where sys::Wait could wait on wrong pid.