Bluetooth: Avoiding ANR, while rejecting DUN authorization request

- A case, where DUT has rejected remote device authorization
  request, DUT start RFCOMM Listener thread & does not update
  authorization status(isWaitingAuthorization is true), then
  ACTION_ACL_DISCONNECTED is received. As isWaitingAuthorization
  is true, So DUT try to start RFCOMM Listener thread again, which
  is running. So ANR due to longer OBJECT wait in main thread.
  Updating the correct authorization status while rejecting remote
  DUN authorization request to solve the issue.

- Avoiding the resource leak by closing RFCOMM Socket, if
  DunD client socket is not successfully initialized.

Change-Id: Ifbe4e8f961843a2f3028421b1dff6b3986ddd07c
CRs-Fixed: 636259
1 file changed