Avoid UnicodeEncodeError by only printing ASCII.

This fixes running test_decimal in verbose mode on Windows,
which I broke in issue #19572.
Merge fix from 3.3
Do not discard const qualifier without a reason.
Merge from 3.3.
Issue #19751: Fix typo in configuration option
Issue #19751: Fix hash_info test of test_sys on SPARC Solaris
Close #19576: PyGILState_Ensure() now initializes threads. At startup, Python
has no concrete GIL. If PyGILState_Ensure() is called from a new thread for the
first time and PyEval_InitThreads() was not called yet, a GIL needs to be
created.
Issue #14432: Remove the thread state field from the frame structure. Fix a
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
Issue #14432: Generator now clears the borrowed reference to the thread state

Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
Issue #14432: Null merge 3.3, Python 3.4 has a different fix
Issue #14432: Fix compilation when thread support is disabled
(Merge 3.3) Issue #14432: Fix compilation when thread support is disabled
Issue #19952: test_asyncio: relax timings of Windows events, buildbots are
sometimes busy
Close #19787: PyThread_set_key_value() now always set the value. In Python 3.3,
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).

_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
#19957: Simplify encode_7or8bit now that _payload is always str.

Patch by Vajrasky Kok, test enhancement by me.
Backout changeset 46393019b650

test_capi is failing and the fix is not trivial, I prefer to revert