Re #841. Changed the Mutex raw pointer in Task to a boost::shared_ptr.
Merge branch 'feature/8410_task_mutex_shared_ptr' into develop