add an mutex to protect time series unit