add mutex to sync errors