Hold invalidation lock while parsing
* src/mail.cpp (do_parsing): Hold invalidation lock. * src/windowmessages.h: Expose invalidation lock. * src/windowmessages.cpp: Define / initialize lock.
This should make it more robust to do the parsing without
having the mail deleted under our hands because of invalidation
wonkyness.
- GnuPG-Bug-Id: T3789