Fix monkey patching to stop throwing KeyErrors in threading.py

Test Plan: -

Reviewers: jblum, marcua

Reviewed By: marcua

Differential Revision: https://phabricator.locu.com/D6710