Human Capital Risk, Contract Enforcement, and the Macroeconomy