bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)

(cherry picked from commit d59d7374a364c4e5c2b9a83d8e4543ee494285b8)

Co-authored-by: Shane Harvey <shnhrv@gmail.com>
4 files changed