Locks the mutex by sleeping until the mutex is unlocked if it's currently locked.
impl<T> Mutex<T> { fn lock(&'a self) -> MutexGuard<'a, T> }
Returns a mutex-guard.