Avoid unnecessary re-opening of index files during pack close.