Bluetooth: Stop discovery if pending connection

In case a LE device we want to connect to is found during the device
discovery procedure, we should initiate the connection. Since some LE
controllers don't support scanning and initiating state combination,
the scanning will be disabled, therefore we should set the discovery
state to DISCOVERY_STOPPED.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>