prov/sock_dgram: add more capability matching check.