How a lock works and how to pick