[bin/mbsynclaunch][mutt] Better thread handling

imap.logout was hanging the thread