Make sure session-current-mailbox remains synchronised.

The IMAP session slot current-mailbox is supposed to reflect the
currently selected IMAP mailbox.  This was broken in some cases.
Don't use STATUS on currently selected mailbox.

This is not well defined, and in fact fails to work with some servers.