remove reflective call to IndexWriter.waitForMerges

See #8921

I remove this in the most brutal possible way: remove any apis around it, remove any optimizations around it, and remove any tests calling it.