Locks or unlocks the editor for modifications. If an editor is locked, all modifications are blocked, not just user modifications.
See also is-locked?.
If lock? is #f, the editor is unlocked, otherwise it is locked.
Maintains information for locked?.