Unnecessarily static.
Make luaT_classmodulename thread safe.
Thread local callback and state for THError. Copied from github:koraykv/torch
Merge pull request #18 from timharley/thread_safety

Make luaT_classmodulename, THError & THArgCheck threadsafe