faulthandler: fix compilating without threads
2 files changed