add multithread test

When consumer.lua:25 opened, test.c will crash
How to hot update?