The leaders of Canada and China met for the first time in eight years to try to reset relations after years of acrimony.