Using the luajit ffi to do threading