Coincident onset of charge-density-wave order at a quantum critical point in underdoped YBa2Cu3Ox