cache.h: allow oid_object_info to handle arbitrary repositories