n_gsm: added interlocking for gsm_data_lock for certain code paths