Fix unsubscription when renaming an IMAP folder

Fixes #2630