[Git][ghc/ghc][wip/spj-reinstallable-base] 83 commits: Correct `hIsReadable` and `hIsWritable` for duplex handles