lockd: make it killable via Ctrl+C
added some logging