Two threads incrementing all the items in one array, comparison of locking and using OSAtomic