TRQ-2548 & TRQ-2683. Fix some getaddrinfo() semantics.

This commit fixes some places where we called pbs_getaddrinfo() and then turned around
and called insert_addr_name_info() right afterwards.
Also, fix some general valgrind complaints.

Conflicts:

	src/lib/Libnet/net_common.c
	src/server/receive_mom_communication.c