Workaround limitation in JRuby Timeout