indexer: Add git_indexer_stream_finalize() Resolve any lingering deltas, write out the index file and rename the packfile.