XWIKI-9524: Exception thrown when closing XWiki and the Solr indexing queue is full
* Better fix: clear both the resolve and index queues in dispose and send the stop signal to their threads.
* Also, when the resolve thread is interrupted clear the index queue and send the stop signal to the index thread.