Use PBD::pthread_name in debug output for portability