DO NOT MERGE Fix potential DoS caused by delivering signal to BT process

Bug: 28885210
Change-Id: I63866d894bfca47464d6e42e3fb0357c4f94d360

 Conflicts:
	btif/co/bta_hh_co.c
	btif/src/btif_core.c
Merge conflict resolution of ag/1161415 (referencing ag/1164670)
- Directly into mnc-mr2-release

static rfc_slot_t *find_rfc_slot_by_pending_sdp(void) {
 uint32_t min_id = UINT32_MAX;
 int slot = -1;
 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i)
 if (rfc_slots[i].id && rfc_slots[i].f.pending_sdp_request && rfc_slots[i].id < min_id) {
      min_id = rfc_slots[i].id;
      slot = i;
 }

 return (slot == -1) ? NULL : &rfc_slots[slot];
}

static rfc_slot_t *find_rfc_slot_by_pending_sdp(void) {
 uint32_t min_id = UINT32_MAX;
 int slot = -1;
 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i)
 if (rfc_slots[i].id && rfc_slots[i].f.pending_sdp_request && rfc_slots[i].id < min_id) {
      min_id = rfc_slots[i].id;
      slot = i;
 }

 return (slot == -1) ? NULL : &rfc_slots[slot];
}
