[sanitizer] Improve getaddrinfo interceptor.