free tmpzonename and restart_master

(cherry picked from commit 50714a9b)
18 jobs for 558-nsupdate-leaks-memory-when-using-gss-tsig-and-receiving-sigterm-at-a-right-time-v9_12 in 18 minutes and 44 seconds (queued for 8 seconds)