nir/lower_vec_to_regs: always set cursor before inserting reg
nir/lower_vec_to_regs: always set cursor before inserting decl_reg
Otherwise we can end with invalid curson in some cases, specifically, if we encounter an identity vector and thus neither register declaration nor swizzle is inserted, it can lead to invalid cursor and a crash later.
Suggested by: Alyssa Rosenzweig alyssa@rosenzweig.io
Closes: #10905 (closed)