fix is_locked_by reference