gitserver: close packed-refs file in quickRevParseHead()
Created by: ijt
This is meant to help with a customer-reported issue about search performance.
Test plan: cd cmd/gitserver/server && go test -bench=BenchmarkQuickRevParseHead_packed_refs
Before this change the benchmark was failing with too many files open.
CC @beyang