Bridging Distribution Shift and AI Safety: Conceptual and Methodological Synergies