nir/remove_unused_io_vars: check all components to determine variable liveness
this otherwise only checked the first component cc: mesa-stable Reviewed-by:Connor Abbott <cwabbott0@gmail.com> Part-of: <mesa/mesa!28751> (cherry picked from commit 98ce4a98)