fix lua new thread bug