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
I'm wondering why we need a TreeMap here