define tsMutexLocker methods inline