pipe2: fix O_NONBLOCK support on mingw