Globalization and Risky Human-Capital Investment