libreplace: Attempt to fix bug 5910, detect a broken getaddrinfo