Fix _wait OSError on win32 when process runs long

- When a process runs longer than (MAX_IOCOMPLETION_PORT_NOTIFICATION_DELAY +
  MAX_PROCESS_KILL_DELAY) seconds, the _processOutput() thread would crash on
  wait(). Changed the _wait() implementation for win32 to wait indefinitely.

- Added a testcase to catch the issue.