IMAP: do not overwrite flags with data from cache

There is no point in doing this and wasting CPU resources for something which is
already updated elsewhere. The flags are always maintained by the mailbox
synchronization; this code is just useless.