nir/spirv: Refactor variable deocration handling