Revert !7538, simplify locking in dns_view_detach()
This reverts commit eb6b31b6, which led to a null pointer dereference in adb when the resolver tried to use it after it was detached.
Closes #3898 (closed)
This reverts commit eb6b31b6, which led to a null pointer dereference in adb when the resolver tried to use it after it was detached.
Closes #3898 (closed)