microsoft/compiler: Change behavior for emitting inexpressible barriers
If the barrier tries to apply to memory that we can't express, just don't apply the memory portion of the barrier. Similarly, if it tries to apply a global memory barrier at invocation level, upgrade it to thread-group.
/cc @egalli