defer Unlock might be preferred style