mutex lock getaddrinfo