Characterizing the carrier-envelope phase stability of mid-infrared laser pulses by high harmonic generation in solids