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