Lock expiration and refresh