LUCENE-1639: fix case where doc stores are incorrectly double opened, thus leaving open file handles after IndexWriter is closed