Use ThreadWorker on Rubinius.

As discussed in #2957