Support Ruby 2.2 rb_thread_call_without_gvl()

Closes GH-1314.