Fix the clang-tidy build after work_group_size attr changes. (#3016)
SingleWorkItemBarrierCheck.cpp from upstream does not work with our
recent changes in ca9d816234c6a0a73d300085e90dd3d2d5e5ccef. This
addresses the issue by adding some helper methods to the work group
size attributes and using them where appropriate.