[Git][ghc/ghc][wip/sjakobi/regression-tests-3] 25 commits: Correct `hIsReadable` and `hIsWritable` for duplex handles