Thread IDs in critical sections.