HLTrigger/Timer/test: add a thread-based cpu clock for OS X

Add a clock to measure the cpu time used by the current thread, with microsecond
granularity, based on thread_info(mach_thread_self(), THREAD_BASIC_INFO, ...)
keeping the thread "port" in a thread_local variable saves ~0.4 us (out of ~1.8 us)