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
Good point. I'm preparing for merging.