Add mutex configuration to to the Task API