Avoid unnecessary re-opening of index files during pack close.
Merge branch 'master' of git://github.com/jelmer/dulwich