fix bug of per thread kernel stack.