Add support for Loop/Selection control masks
The first patch is unrelated but is a loop unrolling bug fix so I've put it in here in hopes of getting it reviewed.
The following 4 patches add spirv support for Loop/Selection control masks and will allow NIR based GL drivers to add GL_EXT_control_flow_attributes support in future.