refs.c: remove extra git_path calls from read_loose_refs