indexer: close the pack's fd before renaming it Windows gets upset if we rename a file with an open descriptor.