MODE-2313 Corrected concurrent modification exceptions

Corrected concurrent modification exceptions, and changed query engine to not use indexes that are being rebuild via re-indexing.