[PATCH 4.9 27/29] tty: n_gsm: fix proper link termination after failed open