Detach the zone views outside of the zone lock
requested to merge 3801-reduce-memory-bloat-caused-by-delayed-view-detach-lock-order-inversion into main
Detaching the views in the zone_shutdown() could lead to lock-order-inversion between adb->namelocks[bucket], adb->lock, view->lock and zone->lock. Detach the views outside of the section that zone-locked.
Closes #3801 (closed)