Avoid unnecessary work during imap sync
Avoid re-listing folder unnecessarily, and also avoid re-selecting the same-folder multiple times.