test: Skip TCP tests if getaddrinfo doesn't work