read-cache: avoid using git_path() in freshen_shared_index()