Move most of Lua init into the Lua thread
Move most of Lua init into the Lua thread

When lgi is loaded, it acquires a mutex in the current thread. Due to
the way we (and awesome) work, this mutex is never released. Thus, lgi
must be loaded in the dedicated Lua thread, which is exactly what this
commit wants to accomplish.

Signed-off-by: Uli Schlachter <346c0ad49ac8427b61b3b55abbe37dc0ebd524f2@znc.in>

Immington-Industries/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler,way-cooler/way-cooler,Immington-Industries/way-cooler,way-cooler/way-cooler