Bounding CPT and Lorentz symmetry violations through ultra-high-energy cosmic rays