Estimate of the three-loop contribution to the QCD static potential from renormalon cancellation