Remove shared_from_this() by placing its functionality into worker_thread constructor and pool_core.add_task_wrapper