Skip test_prof_thread_name_validation if !config_prof.