Add test for creating luajit + terra per pthread

It fails unfortunately with a -11 exit code, which doesn't mean anything to me.