As you can see, this is a secondary error. It is caused when Products.PDBDebugMode tries to display a traceback.
The traceback seems to indicate that the error actually comes from Python's pdb module -- or the module Python.Framework which might have been monkey patched into pdb. Apparently, the pair no longer expects that pdb can be used inside a thread.