Almost forgot to put the mutex in the place we're actually enumerating the data while it has a potential to be written by the data recording thread.  Added that mutex.