This is now fixed in ESSL 3.10 backend of glslang, so we can remove the old workaround of dropping full memory barriers. Also fixes unrelated issue which newer glslang detects.
We can infer shader types from file extensions.