get_packed_ref_cache(): assume "packed-refs" won't change while locked