When the American ambassador encouraged Cameroon’s president, in office for 36 years, to think about his “legacy,” an uproar ensued over alleged interference from a foreign power.