pfctl: Make print_hostname() less AF-specific
Reduce differences address families and replace strlcpy() with simpler
if/else logic as done in print_addr_str().
OK sashan
Obtained from: OpenBSD, kn <kn@openbsd.org>, 7fdc021ee4
Sponsored by: Rubicon Communications, LLC ("Netgate")