nir/sink: don't sink load_ubo to outside of it's defining loop

Previously, this could have made the resource divergent in code like that which
is genereated by nir_lower_non_uniform_access.

v2: add patch

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: da8ed68a ('nir: replace nir_move_load_const() with nir_opt_sink()')
13 jobs for !1664 with nir_opt_sink_fix0 in 10 minutes and 40 seconds (queued for 2 seconds)
detached
Status Job ID Name Coverage
  Containers Build
passed #510009
debian

00:00:21

 
  Build+Test
passed #510018
meson-arm64

00:06:59

passed #510017
meson-armhf

00:01:40

passed #510011
meson-clang

00:09:26

passed #510015
meson-clover

00:10:17

passed #510019
meson-i386

00:01:18

passed #510014
meson-main

00:07:42

passed #510010
meson-swr-glvnd

00:07:12

passed #510016
meson-vulkan

00:03:27

passed #510021
scons-llvm

00:03:37

passed #510020
scons-nollvm

00:04:09

passed #510012
scons-swr

00:06:28

passed #510013
scons-win64

00:06:50