Fixes possibility of ConcurrentModificationException when a state is accessed by more than one thread and they trigger resolveReferences at the same time.
Fixes possibility of ConcurrentModificationException when a state is accessed by more than one thread and they trigger resolveReferences at the same time.

iamedu/dari,iamedu/dari,iamedu/dari,iamedu/dari