read_raw_ref(): take a (struct ref_store *) argument