Release wakelock on power-off

This makes sure the bluesleep wakelock is released upon power-off.
Previously this was explicitely done in the HAL, but the calling code
should not need to be aware of the internal state and callbacks
shouldn't be triggered on power-off to avoid race conditions.

Bug: 36358814
Test: manual
Change-Id: I157b4c718ad9520dd7ce0b84990e602728b1e636
diff --git a/src/bt_vendor_brcm.c b/src/bt_vendor_brcm.c
index 265132d..01e89a2 100644
--- a/src/bt_vendor_brcm.c
+++ b/src/bt_vendor_brcm.c
@@ -153,6 +153,9 @@
                 {
                     ALOGW("NOTE: BT_VND_PWR_ON now forces power-off first");
                     upio_set_bluetooth_power(UPIO_BT_POWER_ON);
+                } else {
+                    /* Make sure wakelock is released */
+                    hw_lpm_set_wake_state(false);
                 }
             }
             break;