LUCENE-1647: fix case where IndexReader.undeleteAll would make the segment's deletion count incorrect