HID: Prevent incoming and outgoing SDP collision

SDP is performed 2 times as part of HID connection in BD stack,
one after successful authentication, and one in HID stack layer
as SDP data is not stored currently in stack. When there is outgoing and
incoming connections, SDP failed message was posted which was resulting
in SDP failure for HID host resulting in improper disconnection of
HID interrupt channel.

Change-Id: I5b4813dc916696e2c0f76be27a85c1a89c2d8be0
diff --git a/bta/hh/bta_hh_act.c b/bta/hh/bta_hh_act.c
index f799e67..e26915a 100644
--- a/bta/hh/bta_hh_act.c
+++ b/bta/hh/bta_hh_act.c
@@ -399,6 +399,14 @@
         } else {
             status = BTA_HH_OK;
         }
+    } else if (bta_hh_cb.p_disc_db) {
+        /* It is possible that there is incoming/outgoing collision case. DUT initiated
+         * HID connection at same time remote has connected L2CAP for HID control,
+         * so SDP would be in progress, when this flow reaches here. Just do nothing
+         * when the code reaches here, and ongoing SDP completion or failure will handle this case.
+         */
+        APPL_TRACE_DEBUG("%s: ignoring as SDP already in progress", __func__);
+        return;
     }
 
     if (status != BTA_HH_OK)