The real solution is to use gnupg as external program, it's hinted at in the FAQs and a walkthrough is here:
https://wiki.mozilla.org/Thunderbird:OpenPGP:Smartcards#Conf...
Dear Thunderbird developers, if someone uses gnupg assume they want to use gnupg and not some self-cooked, half-working solution.