Dark Energy Survey Year 3 results: Redshift calibration of the MagLim lens sample from the combination of SOMPZ and clustering and its impact on Cosmology