glsl: move uniform block validation to link_uniform_blocks.cpp