bpo-30854: Fix compile error when --without-threads (#2581)

* bpo-30854: Fix compile error when --without-threads

* bpo-30854: fix news
2 files changed