Mid-infrared laser phase-locking to a remote near-infrared frequency reference for high precision molecular spectroscopy