IMAP: Use delayed signalling when notifying about ALERT

The callers might very well reenter the event loop, so let's be consistent here
and use delayed signalling even though this doesn't lead to any problems
(AFAIK).
IMAP: Use delayed signalling when the mailbox sync breaks

BUG: 332318