mutt: Improve thread handling