imap: Various fixes for handling expunges in mailbox sync.
imap: Various fixes for handling expunges in mailbox sync.

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot