windows: fix compatibility with cygwin pipes

This makes libuv more tolerant of the properties of the pipes
that it can use without any issue. this is necessary because Cygwin
(and hence Mintty) opens STDIN without FILE_WRITE_ATTRIBUTES.