Connection between supernova shocks, flavor transformation, and the neutrino signal