Single-frequency mid-infrared chip laser with a sub-hertz Lorentzian linewidth