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