Mutex for dataPoints array to prevent crash