nir: fix a bug in is_dual_slot in nir_io_add_const_offset_to_base