better cleanup for stale locks [ci skip]