Fix a ConcurrentModificationException in PagesCache

WeakHashMaps actually mutate on iteration