Pathway-specific inputs to the superior colliculus support flexible responses to visual threat