Etymology
Today it means: The assembly forming the firing mechanism of a gun. Full definition →
From lock + work.
Etymology from Wiktionary, CC BY-SA 4.0.