nir: Fix non-determinism in lower_global_vars_to_local

Merged Connor Abbott requested to merge cwabbott0/mesa:nir-global-to-local into master

Using a hash-table walk means that variables will get inserted in different orders on different runs. Just walk the list of globals instead, even if some of them can't be turned into locals.

Merge request reports