Fix word order in documentation for with_lock
Merge pull request #10805 from pilaf/master

Fix word order in documentation for with_lock [ci skip]