[SPARK-3748] Log thread name in unit test logs

Thread names are useful for correlating failures.