we have to lock mutex in transform
change TS_LUA_MAX_STATE_COUNT to 256