Change mac logging.cc from mach_thread_self() to
pthread_mach_thread_np(pthread_self()) to avoid needing to manage the
Mach port reference.