lock tsStoreMySQL for multi-thread use