BLE: fix doesn't unregister client_if since appDied flag is wrong

When the APP is died, GattService will set appDied to true and stop
scan. In the use case, the client_if isn't correctly unregistered since
the target client appDied flag doesn't correctly set to true. Will
directly get the client and set the client appDied flag to true to make
sure the parameter is aligned.

Bug: 143588356
Test: Check client_if can be unregistered after APP was died.
Change-Id: I16d86a321f9ee65c692accdb0bcdac41e31702b3
1 file changed
tree: 21ad324e84fd376c571150d42b314caaf0447dd0
  1. android/