dnsmasq: update DNS records after pruning DHCP leases
Not doing so can result in a use after free since the name for DHCP derived DNS records is represented as a pointer into the DHCP lease table. Update will only happen when necessary since lease_update_dns tests internally on dns_dirty and the force argument is zero.
(cherry picked from commit e1f41c7b)