LUCENE-1314: change reference counting to properly track deleted docs & shared core readers inside SegmentReader