Fixed index reopen check to work more correctly when syncing view/head.
Fixed index reopen check to work more correctly when syncing view/head.

damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot