Bluetooth: shell: Fix illegal access
Bluetooth: shell: Fix illegal access

BT_LE_ADV_CONN_DIR_LOW_DUTY declares a local variable so it cannot go
out of scope, so instead of assigning in the scope of the if statement
this rework the code to mantain the declaration in the same scope it is
used.

Fixes #10570

Signed-off-by: Luiz Augusto von Dentz <8530c5ea66a1bdbc08f98bfcf183c8be901b5990@intel.com>

explora26/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,punitvara/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,explora26/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,explora26/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,finikorg/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,Vudentz/zephyr,galak/zephyr,explora26/zephyr,explora26/zephyr,ldts/zephyr,Vudentz/zephyr,galak/zephyr,nashif/zephyr,ldts/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,punitvara/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,nashif/zephyr,galak/zephyr,nashif/zephyr,punitvara/zephyr