Perform getaddrinfo in separate thread for a given struct host.