Add missing lock around the use of gethostbyaddr.
Add missing lock around the use of gethostbyaddr.

This cures the symptoms of ROOT-6828 ... however this will fails if any other code anywhere else also
uses gethostbyaddr .. the right solution is to replace the use of gethostbyaddr by getaddrinfo

(cherry picked from commit d22fcb4f7ce49ea788a8591e6aac495d26750e9f)

sirinath/root,dfunke/root,simonpf/root,esakellari/my_root_for_test,bbockelm/root,krafczyk/root,jrtomps/root,zzxuanyuan/root-compressor-dummy,gbitzes/root,evgeny-boger/root,bbockelm/root,satyarth934/root,nilqed/root,mkret2/root,root-mirror/root,omazapa/root-old,buuck/root,mattkretz/root,veprbl/root,Duraznos/root,arch1tect0r/root,Duraznos/root,arch1tect0r/root,CristinaCristescu/root,Y--/root,mattkretz/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,gganis/root,krafczyk/root,sirinath/root,arch1tect0r/root,CristinaCristescu/root,omazapa/root,Y--/root,krafczyk/root,dfunke/root,lgiommi/root,thomaskeck/root,karies/root,bbockelm/root,mhuwiler/rootauto,abhinavmoudgil95/root,vukasinmilosevic/root,agarciamontoro/root,mattkretz/root,olifre/root,satyarth934/root,davidlt/root,krafczyk/root,sawenzel/root,jrtomps/root,pspe/root,pspe/root,karies/root,buuck/root,buuck/root,mkret2/root,esakellari/my_root_for_test,gbitzes/root,jrtomps/root,esakellari/my_root_for_test,georgtroska/root,sbinet/cxx-root,sbinet/cxx-root,omazapa/root-old,mkret2/root,simonpf/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,dfunke/root,lgiommi/root,sbinet/cxx-root,krafczyk/root,jrtomps/root,bbockelm/root,omazapa/root-old,esakellari/root,sawenzel/root,omazapa/root,zzxuanyuan/root-compressor-dummy,olifre/root,gganis/root,gbitzes/root,mkret2/root,omazapa/root-old,sbinet/cxx-root,omazapa/root-old,sbinet/cxx-root,pspe/root,sawenzel/root,BerserkerTroll/root,zzxuanyuan/root,abhinavmoudgil95/root,georgtroska/root,beniz/root,veprbl/root,mkret2/root,omazapa/root,CristinaCristescu/root,Y--/root,mhuwiler/rootauto,arch1tect0r/root,thomaskeck/root,evgeny-boger/root,Y--/root,lgiommi/root,olifre/root,gbitzes/root,BerserkerTroll/root,root-mirror/root,davidlt/root,mattkretz/root,CristinaCristescu/root,evgeny-boger/root,perovic/root,sirinath/root,evgeny-boger/root,CristinaCristescu/root,simonpf/root,thomaskeck/root,nilqed/root,karies/root,gganis/root,veprbl/root,omazapa/root-old,karies/root,bbockelm/root,perovic/root,sbinet/cxx-root,esakellari/root,BerserkerTroll/root,CristinaCristescu/root,root-mirror/root,simonpf/root,lgiommi/root,krafczyk/root,beniz/root,esakellari/my_root_for_test,BerserkerTroll/root,Duraznos/root,veprbl/root,buuck/root,olifre/root,agarciamontoro/root,satyarth934/root,esakellari/my_root_for_test,sawenzel/root,sirinath/root,root-mirror/root,esakellari/root,gganis/root,abhinavmoudgil95/root,satyarth934/root,nilqed/root,bbockelm/root,zzxuanyuan/root,dfunke/root,evgeny-boger/root,karies/root,veprbl/root,dfunke/root,davidlt/root,krafczyk/root,karies/root,georgtroska/root,karies/root,mkret2/root,esakellari/my_root_for_test,jrtomps/root,lgiommi/root,nilqed/root,sirinath/root,Y--/root,mhuwiler/rootauto,davidlt/root,BerserkerTroll/root,gganis/root,olifre/root,root-mirror/root,Y--/root,mhuwiler/rootauto,zzxuanyuan/root,buuck/root,georgtroska/root,sirinath/root,perovic/root,arch1tect0r/root,Y--/root,sirinath/root,jrtomps/root,agarciamontoro/root,CristinaCristescu/root,beniz/root,vukasinmilosevic/root,arch1tect0r/root,dfunke/root,georgtroska/root,CristinaCristescu/root,buuck/root,simonpf/root,vukasinmilosevic/root,esakellari/my_root_for_test,nilqed/root,mattkretz/root,sawenzel/root,abhinavmoudgil95/root,sawenzel/root,BerserkerTroll/root,nilqed/root,omazapa/root,BerserkerTroll/root,Y--/root,gganis/root,veprbl/root,evgeny-boger/root,BerserkerTroll/root,zzxuanyuan/root,pspe/root,lgiommi/root,perovic/root,mkret2/root,abhinavmoudgil95/root,sbinet/cxx-root,mattkretz/root,vukasinmilosevic/root,abhinavmoudgil95/root,omazapa/root-old,olifre/root,beniz/root,CristinaCristescu/root,omazapa/root-old,esakellari/my_root_for_test,pspe/root,mhuwiler/rootauto,mhuwiler/rootauto,mattkretz/root,olifre/root,omazapa/root,gganis/root,sbinet/cxx-root,buuck/root,veprbl/root,pspe/root,nilqed/root,davidlt/root,evgeny-boger/root,sbinet/cxx-root,Duraznos/root,georgtroska/root,thomaskeck/root,esakellari/root,beniz/root,mkret2/root,simonpf/root,veprbl/root,esakellari/my_root_for_test,gganis/root,Duraznos/root,vukasinmilosevic/root,mattkretz/root,lgiommi/root,satyarth934/root,root-mirror/root,omazapa/root,abhinavmoudgil95/root,davidlt/root,agarciamontoro/root,buuck/root,bbockelm/root,root-mirror/root,agarciamontoro/root,omazapa/root,beniz/root,evgeny-boger/root,simonpf/root,sawenzel/root,sirinath/root,mkret2/root,agarciamontoro/root,lgiommi/root,mattkretz/root,agarciamontoro/root,thomaskeck/root,arch1tect0r/root,sawenzel/root,mhuwiler/rootauto,mhuwiler/rootauto,Y--/root,karies/root,perovic/root,vukasinmilosevic/root,abhinavmoudgil95/root,zzxuanyuan/root,thomaskeck/root,jrtomps/root,perovic/root,arch1tect0r/root,omazapa/root,zzxuanyuan/root,mhuwiler/rootauto,pspe/root,vukasinmilosevic/root,BerserkerTroll/root,thomaskeck/root,beniz/root,omazapa/root,vukasinmilosevic/root,BerserkerTroll/root,Duraznos/root,simonpf/root,satyarth934/root,vukasinmilosevic/root,simonpf/root,arch1tect0r/root,mattkretz/root,zzxuanyuan/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,lgiommi/root,georgtroska/root,perovic/root,buuck/root,gbitzes/root,evgeny-boger/root,jrtomps/root,simonpf/root,krafczyk/root,nilqed/root,sbinet/cxx-root,zzxuanyuan/root,gbitzes/root,georgtroska/root,pspe/root,arch1tect0r/root,georgtroska/root,thomaskeck/root,pspe/root,Duraznos/root,georgtroska/root,jrtomps/root,arch1tect0r/root,Duraznos/root,gganis/root,agarciamontoro/root,zzxuanyuan/root,gbitzes/root,mkret2/root,gbitzes/root,krafczyk/root,jrtomps/root,lgiommi/root,root-mirror/root,jrtomps/root,nilqed/root,davidlt/root,sbinet/cxx-root,CristinaCristescu/root,satyarth934/root,Y--/root,vukasinmilosevic/root,satyarth934/root,gbitzes/root,esakellari/my_root_for_test,perovic/root,olifre/root,thomaskeck/root,abhinavmoudgil95/root,davidlt/root,dfunke/root,nilqed/root,zzxuanyuan/root-compressor-dummy,omazapa/root-old,davidlt/root,CristinaCristescu/root,zzxuanyuan/root-compressor-dummy,karies/root,esakellari/root,veprbl/root,krafczyk/root,lgiommi/root,olifre/root,zzxuanyuan/root,perovic/root,esakellari/root,pspe/root,georgtroska/root,davidlt/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,esakellari/root,buuck/root,karies/root,esakellari/root,zzxuanyuan/root-compressor-dummy,Duraznos/root,gganis/root,zzxuanyuan/root,esakellari/root,satyarth934/root,agarciamontoro/root,omazapa/root,omazapa/root-old,root-mirror/root,root-mirror/root,veprbl/root,Duraznos/root,beniz/root,dfunke/root,evgeny-boger/root,beniz/root,agarciamontoro/root,karies/root,satyarth934/root,veprbl/root,dfunke/root,perovic/root,sawenzel/root,mattkretz/root,Y--/root,Duraznos/root,gbitzes/root,gganis/root,evgeny-boger/root,simonpf/root,olifre/root,krafczyk/root,dfunke/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,gbitzes/root,mhuwiler/rootauto,mkret2/root,bbockelm/root,root-mirror/root,olifre/root,omazapa/root,dfunke/root,beniz/root,sirinath/root,satyarth934/root,beniz/root,esakellari/root,buuck/root,esakellari/root,nilqed/root,sawenzel/root,thomaskeck/root,pspe/root,mhuwiler/rootauto,vukasinmilosevic/root,bbockelm/root,sirinath/root,BerserkerTroll/root,davidlt/root,perovic/root,agarciamontoro/root,sirinath/root