CARBON-15031. prefer ipv4 stack over ipv6 when looking up the localhost. And, cache the java.net.InetAddress.getLocalHost call in ibm jdk