cmake: Move check for TOTP property up.
cmake: Move check for TOTP property up.

This is done to make future modifications simpler,
as more variables and functions are available.

Signed-off-by: Håkon Øye Amundsen <4238ca2ac515887d8a25d5e30932b12519303bf7@nordicsemi.no>

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