External Shocks and Adjustments in Smallholder Livestock Production