Bug 719720 - Refcount error in imapx_command_select_done()

We were finalizing the CamelIMAPXCommand too early, and then trying
to use it further down in the logic.  This of course led to crashes.

Failed command structures were also leaking.  Fixed that too.