No, I think this is correct.

If everything goes through correctly with the initialisation, it passes back a pointer to the LUA thread context which can then be used in consequent functions to safely interact with the lua interpreter in a thread safe manor, as there is a different initialised context per thread.