Make LUA addons thread safe.