cache: convert struct cache_entry to use struct object_id