lock_ref_for_update(): avoid a symref resolution