Fix for fatal error that may occur by multiple threads editing an array.
Fix for fatal error that may occur by multiple threads editing an array.

NicholasMata/SimpleSync,NicholasMata/SimpleSync,NicholasMata/SimpleSync