release systemwide lock only after taking relevant actions