s4:lib/socket: use the same logic in iface_list_wildcard() as in smbd