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
Looking at it I don't know why either :(