Remove unused Graph class.
Remove unused Job::Type enum.
Fix the stupid code that tried to lock the mutex used to access the Lua VM using Lua itself.

Also fix a lua_State* leak on MeiqueCache.