An upper limit to the electric dipole moment of the neutron from lattice QCD