sha1_file.c: move find_cached_object up so sha1_object_info can use it