Revert "pack: packfile_free -> git_packfile_free and use it in the indexers"

This reverts commit f289f886cb81bb570bed747053d5ebf8aba6bef7, which
makes the tests fail on Windows. Revert until we can figure out a
solution.