[openEuler-5.10-LTS 372/501] tty: n_gsm: fix wrong T1 retry count handling