Made SectionProfiler cache the ScopedCallback closure to lower overhead

Change-Id: Ia6f2ef4bb82dad13d49e74c730530295d5719009
Merge "Made SectionProfiler cache the ScopedCallback closure to lower overhead"