gprs_gmm: release Iu connection on RAU failures

When a RAU fails without an a GMM context, release the Iu
connection after sending a response.

Change-Id: I05a9200f55d608ccfb3f86184c324a2b428da76b
diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c
index afae369..b6b1685 100644
--- a/src/sgsn/gprs_gmm.c
+++ b/src/sgsn/gprs_gmm.c
@@ -1699,6 +1699,12 @@
 		mm_ctx_cleanup_free(mmctx, "GPRS RA UPDATE REJ");
 	else if (llme)
 		gprs_llgmm_unassign(llme);
+#ifdef BUILD_IU
+	else if (MSG_IU_UE_CTX(msg)) {
+		unsigned long X1001 = osmo_tdef_get(sgsn->cfg.T_defs, -1001, OSMO_TDEF_S, -1);
+		ranap_iu_tx_release_free(MSG_IU_UE_CTX(msg), NULL, (int) X1001);
+	}
+#endif
 
 	return rc;
 }