Resolve the socket protocol/address family issues with IPv4 vs. IPv6

When listening, the address family cannot be PF_UNSPEC, so default to PF_INET (IPv4), when not specified.
Not sure why we're setting ai_flags to PF_UNSPEC (copied from syncterm) - that's just 0, but otherwise the PF_ and AI_ flags are not compatible.
Don't set the ai_flags to anything here since they don't seem to change the behavior.
14 jobs for master in 10 minutes and 7 seconds (queued for 14 seconds)
Status Name Job ID Coverage
  Build
passed jsdoor-freebsd #35641
FreeBSD

00:03:52

passed jsdoor-linux #35642
Linux

00:06:45

passed jsdoor-windows #35644
FreeBSD

00:01:53

passed sbbs-freebsd #35636
FreeBSD

00:05:27

passed sbbs-linux #35631
Linux

00:10:01

passed sbbs-windows #35634
Windows

00:05:22

passed sexpots-freebsd #35643
FreeBSD

00:00:13

passed sexpots-linux #35632
Linux

00:00:21

passed sexpots-windows #35635
Windows

00:00:33

passed syncdraw-freebsd #35639
FreeBSD

00:00:25

passed syncdraw-linux #35640
Linux

00:01:04

passed syncterm-freebsd #35637
FreeBSD

00:01:04

passed syncterm-linux #35633
Linux

00:03:04

passed syncterm-windows #35638
FreeBSD

00:01:47