fixes a bug where rapid inserts from different threads cause `*** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection was mutated while being enumerated.'`