See line 1771:
+  DWORD duplex_flags = UV_HANDLE_READABLE | UV_HANDLE_WRITABLE;

uv_set_pipe_handle is setting the flags, clearing UV_HANDLE_WRITABLE should the pipe be read-only.