Add mail window id accessor
* src/mail.h (Mail::get_window): New.
Kind of ugly as the window is only valid for a short time but helps in cryptcontroller.