ISPN-2538 Endless loop in TreeMap.remove at shutdown of query-enabled

cache

* Changed map to be synchronized

https://issues.jboss.org/browse/ISPN-2538
It isn't performed in parallel, but there is a case with a user was shutting down a cache while the cache manager is also shutting it down.