wrap LuaJIT memory allocator in a critical section by default