Fix concurrent connections to IMAP while searching
Apply the right flags for searching in all folders