Bluetooth: fix for the unrecoverable state after BT on is failed

- When bt_enable() is called ,device try to turn on hci device.
  if timeout happened after 10 seconds try,set_bluetooth_power() is called.
  but hciattach is still running state, so turning on BT will fail.
  it is unrecoverable before device reboot.

- add code for hciattach stop

Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>

Change-Id: Id210995eb4e811994d40e1a5f567606f2b9a0207
diff --git a/bluedroid/bluetooth.c b/bluedroid/bluetooth.c
index bf188be..252bdc4 100644
--- a/bluedroid/bluetooth.c
+++ b/bluedroid/bluetooth.c
@@ -177,6 +177,9 @@
     if (attempt == 0) {
         LOGE("%s: Timeout waiting for HCI device to come up, error- %d, ",
             __FUNCTION__, ret);
+        if (property_set("ctl.stop", "hciattach") < 0) {
+            LOGE("Error stopping hciattach");
+        }
         set_bluetooth_power(0);
         goto out;
     }