Smallholder farmers grow a third of the world’s food. If their farms were to collapse, it would have catastrophic global consequences.