make #work_threads spec JRuby-friendly