lock has 16 distinct synonyms spread across 7 of its 15 senses. Each sense below keeps its own list, because a synonym belongs to a meaning and not to a word: swapping one sense's substitute into another sense's sentence is how a thesaurus makes writing worse. Its one recorded opposite is unlock.
Counts are distinct word forms across every sense. A synonym that appears under three senses is counted once here and shown three times below, under each sense it belongs to.
hold fast (in a certain state)
“He was locked in a laughing fit”
pass by means through a lock in a waterway
build locks in order to facilitate the navigation of vessels
a fastener fitted to a door or drawer to keep it firmly closed
a mechanism that detonates the charge of a gun
enclosure consisting of a section of canal that can be closed to control the water level; used to raise or lower vessels that pass through it
a restraint incorporated into the ignition switch to prevent the use of a vehicle by persons who do not have the key
any wrestling hold in which some part of the opponent's body is twisted or pressured
Synonyms, antonyms and the broader and narrower relations for lock come from Princeton University’s WordNet. Full sources and licences.