glsl: add subroutine support to nir_build_program_resource_list()