Revert "threading/lua api"

This reverts commit 79113ee4ab9d34d1c2ea338f1fcf9475b8de0f69.