Borrowed from French loquet (“latch”). Cognate to Lombard lochet and Portuguese loquete.
Practice speaking and memorizing "lucchetto" and many other words and sentences in Italian.