Fix crash caused by race condition during resolver cache flushing
dns_view_flushcache() call has to be always done in single-thread mode.
Locking around the call was missing in forwarder reconfiguration and
zone deletion which could cause BIND crash.