Fix transition to MODSEQ-enabled IMAP server. Bug #12941