add InetAddress::resolve for sync DNS resolving with gethostbyname_r