Add option to show a confirmation dialog before locking all open databases

I constantly lock my databases by accident. So I decided to add an option that displays a simple confirmation dialog before actually locking them. Hope you appreciate the change.