packed_refs_lock(): function renamed from lock_packed_refs()