zone.c:integrity_checks() acquires a read lock while iterating the
zone database, and calls zone_check_mx() which acquires another
read lock. If another thread tries to acquire a write lock in the
meantime, it can deadlock. Calling dns_dbiterator_pause() to release
the first read lock prevents this.
(cherry picked from commit
4e1faa35d502cdaf9214e9f00407c9e06500d7c4)
goto next;
}
+ dns_dbiterator_pause(dbiterator);
+
/*
* Don't check the NS records at the origin.
*/