Update threadpool.c

fixed pool->thread_count when thread create fails