prov/sock_dgram: re-organize sock_dgram_getinfo.