QThreadPool: make sure threads do not exit after 30 sec otherwise they
might crash with thread local storage.