BLE: Improve DB entry lookup.
BLE: Improve DB entry lookup.

The DB entry lookup now looks at the identity address and/or connection address to find a DB entry associated to an address.

If the entry has not been found in the DB and a new entry is returned then the connection address is not stored for private addresses.

c1728p9/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,betzw/mbed-os,mbedmicro/mbed,mbedmicro/mbed,betzw/mbed-os,mbedmicro/mbed,c1728p9/mbed-os,mbedmicro/mbed,mbedmicro/mbed,c1728p9/mbed-os,kjbracey-arm/mbed,betzw/mbed-os,betzw/mbed-os,betzw/mbed-os,andcor02/mbed-os,c1728p9/mbed-os,c1728p9/mbed-os,kjbracey-arm/mbed,c1728p9/mbed-os,andcor02/mbed-os,betzw/mbed-os,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os