Avoiding a ConcurrentModificationException in the EntityTracker HashSet c