[MEDIUM] session-counters: correctly unbind the counters tracked by the backend

In case of HTTP keepalive processing, we want to release the counters tracked
by the backend. Till now only the second set of counters was released, while
it could have been assigned by the frontend, or the backend could also have
assigned the first set. Now we reuse to unused bits of the session flags to
mark which stick counters were assigned by the backend and to release them as
appropriate.
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index 5882791..301666f 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -695,8 +695,11 @@
 					 */
 					t = rule->act_prm.trk_ctr.table.t;
 					ts = stktable_get_entry(t, tcpv4_src_to_stktable_key(s));
-					if (ts)
+					if (ts) {
 						session_track_stkctr1(s, t, ts);
+						if (s->fe != s->be)
+							s->flags |= SN_BE_TRACK_SC1;
+					}
 				}
 			}
 			else if (rule->action == TCP_ACT_TRK_SC2) {
@@ -708,8 +711,11 @@
 					 */
 					t = rule->act_prm.trk_ctr.table.t;
 					ts = stktable_get_entry(t, tcpv4_src_to_stktable_key(s));
-					if (ts)
+					if (ts) {
 						session_track_stkctr2(s, t, ts);
+						if (s->fe != s->be)
+							s->flags |= SN_BE_TRACK_SC2;
+					}
 				}
 			}
 			else {