To dream of a lock indicates failure to assert yourself. This keeps you locked out and left behind. It mirrors a part of your personality that you don't want discovered or have difficulty expressing.

To dream that a lock is accidentally placed around your wrist means you are uncertain if it is prudent to openly express your thoughts and feelings. You feel that doing this would be a great risk.