Use a global lua state and lua threads