Precision test of mass-ratio variations with lattice-confined ultracold molecules.