nir_to_tgsi: Fix UBO declarations, make NIR SSBO/UBO var decls matchable to intrinsics
Alternate to !11938 (closed) thanks to a suggestion from @jekstrand that reuses existing state, and should let zink delete its ubos_used
/ssbos_used
-based variable recreation (@zmike).
Part of finishing !8044 (merged)