nir: Add support for cloning shaders