tbf: Do not kill DL TBF on Packet Resource Request

Currently all active TBF of an MS are killed if a Packet Resource
Request is received from the MS. In general this happens after a RACH
request. This does not happen after a resource request that has been
included into a Downlink Ack/Nack.

Sometimes an UL TBF is requested by an MS via RACH while a DL TBF is
running for instance to send a TCP Ack. This can happen, if a former
request via PACCH did not work.

This commit removes the killing of the DL TBF from
gprs_rlcmac_pdch::rcv_resource_request().

Sponsored-by: On-Waves ehf
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 457fe24..2e6da02 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -887,6 +887,8 @@
 	}
 
 	old_ms = bts->ms_by_tlli(new_tlli);
+	/* Keep the old MS object for the update_ms() */
+	GprsMs::Guard guard(old_ms);
 	if (old_ms) {
 		/* Get them before calling set_ms() */
 		dl_tbf = old_ms->dl_tbf();
@@ -897,7 +899,7 @@
 
 		/* there might be an active and valid downlink TBF */
 		if (!ms()->dl_tbf() && dl_tbf)
-			/* Move it to the current MS */
+			/* Move it to the current MS (see the guard above) */
 			dl_tbf->set_ms(ms());
 	}