timeval: Make CPU usage and wakeup tracking per-thread.