Mark critical sections.