Create threadsafe-gethostbyaddr.c

This is the thread safe implementation of gethostbyaddr