lua_newstate can return NULL