tests: kernel  tickless: Bugfix for POSIX arch in TICKLESS
tests: kernel  tickless: Bugfix for POSIX arch in TICKLESS

In the POSIX architecture, with the inf_clock "SOC", time does
not pass while the CPU is running. Tests that require time to pass
while busy waiting should call k_busy_wait() or in some other way
set the CPU to idle. This test was setting the CPU to idle while
waiting for the next time slice. This is ok if the system tick
(timer) is active and awaking the CPU every system tick period.
But when configured in tickless mode that is not the case, and the
CPU was set to sleep for an indefinite amount of time.
This commit fixes it by using k_busy_wait(a few microseconds) inside
that busy wait loop instead.

Signed-off-by: Alberto Escolar Piedras <52be3174920ed06cbdfbcf9622a1a6c68e942617@oticon.com>

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