[Git][ghc/ghc][wip/T20264] 183 commits: Correct `hIsReadable` and `hIsWritable` for duplex handles