Allow `NonBlockingPopen` not to fail badly and also not to block on MS Windows. Fixes #5969.