make global variable in thread.c static.