imap: Small tidy up of imap_select() to match imap_append()

Updated the style of imap_select() before adding the LIST command.