This should delay the catalog zone from being destroyed during
shutdown, if the update process is still running.
Doing this should not introduce significant shutdown delays, as
the update function constantly checks the 'shuttingdown' flag
and cancels the process if it is set.
(cherry picked from commit
dc2b8bb1c970babe774dd32048ea182d74e8fb36)
ISC_LOG_INFO, "catz: %s: reload start", domain);
dns_catz_ref_catzs(catz->catzs);
+ dns_catz_ref_catz(catz);
isc_nm_work_offload(isc_task_getnetmgr(catz->catzs->updater),
dns__catz_update_cb, dns__catz_done_cb, catz);
ISC_LOG_INFO, "catz: %s: reload done: %s", dname,
isc_result_totext(result));
+ dns_catz_unref_catz(catz);
dns_catz_unref_catzs(catz->catzs);
}