refs.c: kill register_ref_store(), add register_submodule_ref_store()