lchan_fsm: add in_release_handler flag

If a release event is being handled, ignore other ricocheting release events
until that release handling has concluded.

For example, if an lchan is regularly released, it signals the lchan RTP FSM to
release, which then calls back to say "RTP is released" on termination -- this
should not trigger other state changes than the initial release intends.

Change-Id: Iec41e006b6ab9d0f618d36925341f9536353e5d8
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index 12bc5c3..448924c 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -525,6 +525,10 @@
 	/* RSL error code, RSL_ERR_* */
 	uint8_t rsl_error_cause;
 
+	/* If a release event is being handled, ignore other ricocheting release events until that
+	 * release handling has concluded. */
+	bool in_release_handler;
+
 	/* The logical channel type */
 	enum gsm_chan_t type;
 	/* RSL channel mode */