Re #841. Changed the Mutex raw pointer in Task to a boost::shared_ptr.
Re #8410. Made modifications as suggested by Russell.
Merge remote branch 'origin/feature/8410_task_mutex_shared_ptr'