Fix memory corruption that can occur during a Ruby GC run.

It's kind of a long story, but the short version is that using the static qualifier for o_except can lead to memory corruption during a Ruby GC run. This change fixes that.