core: device: Fix device_browse_gatt
core: device: Fix device_browse_gatt

This patch fixes an issue that occurs in device.c:device_browse_gatt
when an ATT data connection already exists. This patch solves the
following problems:

  1. In the case when services are already discovered, the old code
     re-probed all profiles which caused crashes.
  2. In the case when services are already discovered, the old code
     never actually resolved the browse request when initiated from
     an outgoing bonding request. This caused, for example, a D-Bus
     call to Pair to receive no response.

pkarasev3/bluez,mapfau/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,mapfau/bluez,pkarasev3/bluez,silent-snowman/bluez,ComputeCycles/bluez,silent-snowman/bluez,mapfau/bluez,pkarasev3/bluez