Add ThreadTaskPool::sharedFromThis.

It helps getting std::shared_ptr to thread. For example, using timer.
Merge branch 'master' into ui