Corrected typo in lock descriptions

There was a small typo ("eference" vs "reference") in the description of the "(r)" comment.