Constraints on running vacuum models with the baryon-to-photon ratio