[ruby-core:122769] [Ruby Bug#21441] SEGV during thread cleanup if profiler calls thread_profiles_frames at wrong time