[lnet]Added  method get_main_state to get the LuaState from mainthread inside corountines.