Expose critical sections api and add section id param for generalization
Merge pull request #1530 from maciejmrowiec/data_cleanup

Expose critical sections api and add section id param for generalization