proper/correct synchronization on hashmap to avoid ConcurrentModificatio...

Running robolectric-2 snapshots, after tests completed I saw a ConcurrentModificationException while writing the classcache because (presumably) a .put() happened while iterating the class cache. This will necessarily be an intermittent failure, since HashMap doesn't enforce these rules strictly, but only if it happens to notice a problem.