That shouldn't be too hard to work around. Perhaps we want to provide a nice wrapper around thread local variables that works on all Rubies as well? And that JRuby can more efficiently replace with Java thread locals.

For example, an object `ThreadLocalVariable` with `#value` and `#value=`.