Read the text at the bottom of the avast SSL Accounts image you posted (my image attached), this states you should remove the accounts from within that section.
Set your thunderbird email account settings to use SSL on the ports as they were before making any adjustments so avast could scan them.