Fix overlapped I/O on Windows. Provide a test.

The new Windows Named Pipe IPC code will not handle overlapped I/O correctly. Updated the unit test as well. Our buffers were small enough that overlapped never triggered, so we didn't see this.