FIx a nasty concurrency bug caused by global functions
FIx a nasty concurrency bug caused by global functions

kaustavha/luvit,DBarney/luvit,DBarney/luvit,brimworks/luvit,rjeli/luvit,kaustavha/luvit,GabrielNicolasAvellaneda/luvit-upstream,luvit/luvit,boundary/luvit,AndrewTsao/luvit,sousoux/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,rjeli/luvit,AndrewTsao/luvit,rjeli/luvit,sousoux/luvit,boundary/luvit,DBarney/luvit,luvit/luvit,bsn069/luvit,connectFree/lev,GabrielNicolasAvellaneda/luvit-upstream,bsn069/luvit,AndrewTsao/luvit,connectFree/lev,rjeli/luvit,zhaozg/luvit,DBarney/luvit,sousoux/luvit,kaustavha/luvit,boundary/luvit,zhaozg/luvit,boundary/luvit,sousoux/luvit,sousoux/luvit,bsn069/luvit