Cattle, coffee, and cocoa producers have enjoyed historical rallies but unusually high input costs spell disaster ahead.