hack for mruby-thread. https://github.com/mattn/mruby-thread/issues/10