Merge "Bluetooth: Thread-safe state machine's cleaning-up."