anv: Support workgroup memory in other shaders
Mesh and Task shaders can use workgroup memory, so generalize its handling in anv by moving it from anv_pipeline_compile_cs() to anv_pipeline_lower_nir().
This MR exists only for the topmost patch. The others are from !11225 (merged).