nir: fix lowering to scratch with boolean access