thread pool: fix unsafe variable change

In the thread pool initalization threads_awake is changed without a
proper mutex lock. Once threads are started, threads_awake should not be
changed with a mutex lock.
Merge pull request #20 from wpoely86/threadpool

thread pool: fix unsafe variable change