nir/spirv: improve mmap() error handling