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 void free_rfc_slot_scn(rfc_slot_t *slot) {
 if (slot->scn <= 0)
 return;

 if(slot->f.server && !slot->f.closing && slot->rfc_handle) {
    BTA_JvRfcommStopServer(slot->rfc_handle, (void *)(uintptr_t)slot->id);
    slot->rfc_handle = 0;
 }

 if (slot->f.server)
    BTM_FreeSCN(slot->scn);
  slot->scn = 0;
}

static void free_rfc_slot_scn(rfc_slot_t *slot) {
 if (slot->scn <= 0)
 return;

 if(slot->f.server && !slot->f.closing && slot->rfc_handle) {
    BTA_JvRfcommStopServer(slot->rfc_handle, (void *)(uintptr_t)slot->id);
    slot->rfc_handle = 0;
 }

 if (slot->f.server)
    BTM_FreeSCN(slot->scn);
  slot->scn = 0;
}
