include IndexWriterCache with synchronized methods to avoid exceptions
when closing IndexWriter