[ruby-core:126742] [Ruby Bug#22324] Pure attributes allow Clang to remove observable C API effects