GH-89237: fix hang in proactor `subprocess.wait_closed()` (#98572)

3 files changed