Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust.