Fixed a potential timing issue with Dovecot when getting the modseq