THRIFT-2430 Crash during TThreadPoolServer shutdown

Patch: Lars Benner