9P: replaces bad usage of gethostbyname() by call to getaddrinfo()

Change-Id: If2ac4188c188ec59db6b224c37d978463914a788
Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>