CPython 3.12, greenlet and tracing/profiling: How to not crash and get correct results

cc. @markshannon