Race condition fixed. Sim runs faster.
Everyone is happy now.
'Cept each thread spends a lot of time waiting for the lock when it doesn't need to be, so things aren't NEARLY as fast as they could be with a bit more tweaking.