Start worker thread when needed
Add test for flushing queue in forked process
Dont run fork test in jruby