Fix deadlock on synchronous encrypt
* src/mail.cpp (do_crypt): Release lock in case sync encrypt for drafts finished.