Update locks.rst

Fix typos in locks.rst