locks: convert lease handling to file_lock_context