Test that dx generates deterministic output when using --num-threads