fix ConcurrentModificationException on shutdown and clarify synchronization realities in ClassCache.java