Fix warning in Struct sync::Mutex example

let mut value = mutex.lock();
warning: variable does not need to be mutable
auto merge of #18136 : mprobinson/rust/example-warning, r=alexcrichton

let mut value = mutex.lock();
warning: variable does not need to be mutable