WINDOWS: fix some other issue mentioned in #7082 where NamedPipes can freeze up