lua thread (step execute a lua function)