TTasksCompletionStatus::SetTaskStatusWithPriority

Set the status of a task respecting the previous status value and report if it changed.