fix blocking function spec

see also https://github.com/jruby/jruby/pull/2303
https://github.com/jruby/jruby/issues/2299