An upper limit to the variation in the fundamental constants at redshift z = 5.2