Fall back to gethostbyname + locking if getaddrinfo is missing.