IMAP: update cache when manipulating message flags explicitly

Previously, we would not always update the cache when the change was done via
the .SILENT operation. This is now fixed.

Thanks to paalsteek for reporting this.

REVIEW: 114392