Backport `thread_name_prefix` from upstream (#64)

Changes from https://github.com/python/cpython/pull/2315

Fixes #63.
3 files changed