gsm: Do not attempt to release SAPI=0 if it was never allocated

In case of handover (but probably on RACH) we would send a RLL for
SAPI=0 even if this SAPI was never established. After we have released
all SAPI>0 locally check that SAPI=0 is established and if not release
the rf channel directly.
diff --git a/openbsc/src/libbsc/chan_alloc.c b/openbsc/src/libbsc/chan_alloc.c
index 9b59d5d..411a6cb 100644
--- a/openbsc/src/libbsc/chan_alloc.c
+++ b/openbsc/src/libbsc/chan_alloc.c
@@ -393,6 +393,8 @@
 		/* Deactivate the SACCH on the BTS side */
 		rsl_deact_sacch(lchan);
 		rsl_start_t3109(lchan);
+	} else if (lchan->sapis[0] == LCHAN_SAPI_UNUSED) {
+		rsl_direct_rf_release(lchan);
 	} else {
 		rsl_release_request(lchan, 0, mode);
 	}