lock_ref_for_update(): new function