Locks the document in response to the user choosing the Lock menu item.
- macOS 10.8+
The control sending the message.
This is the action of the Lock menu item in a document-based app. This action method invokes the
lock method by default.