libgsm: Reset the MS mode of GSM in the flush function