gh-157242: Add support.inject_memory_error() function (#157431)

Add inject_memory_error() and memory_error_cm() functions to
test.support to inject memory errors: make the memory allocator fail.
10 files changed