nir/linker: Add nir_build_program_resource_list()