samba_dnsupdate: Move to using tmpfile/rename to keep the dns_hosts_file consistent