pipe-win32: possible fix for Windows XP deadlock

This fixes a hang with the VirtualBox OpenGL drivers. It might help
with #1325 as well.