imap-send: only use CURLOPT_LOGIN_OPTIONS if it is actually available