tests: net: trickle: Initialize test variables earlier
tests: net: trickle: Initialize test variables earlier

The cb_[1|2]_called variables were initialized just before running
the test. This was too late as in some cases the Trickle timer
was triggered before the variables were init, which then caused the
test to fail even though there was no actual timer failure.

This was seen with frdm_k64f and when CONFIG_BOOT_DELAY=1000 was set.

Fixes #8658

Signed-off-by: Jukka Rissanen <f9f077d1da4c7aa947f9864fa5a28c3588f6a45d@linux.intel.com>

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