glsl: validate restrictions on use of barrier()