Use PBD::pthread_name in debug output instead of pthread_self