[libvirt PATCH 2/5] util: dnsmasq: refactor CapsRefresh