component/bt: Fixed the bug crash of disconnet BLE when close the SMP module in the menuconfig. See merge request !941