錠 is a lock, often with a key or combination; 留め金 is a simpler mechanical fastener without a locking mechanism.
Etymology
Compound of 留め (tome, 'stopping, fastening', the continuative form of 留める) + 金 (kane, 'metal'), with rendaku voicing to がね. Literally 'fastening metal'.