[SPARK-963] Fixed races in JobLoggerSuite