Use only family in getaddrinfo hints when socket.connect

being consistent with stdlib