kernel: init: Use entropy API directly to initialize stack canary
kernel: init: Use entropy API directly to initialize stack canary

Some sys_rand32_get() implementation will use shared state and protect
that using some synchronization primitive such as a mutex or a
semaphore.  It's too early in the boot process to use any of them,
which causes some issues.

Use the entropy API directly to set up the stack canaries.

This doesn't completely solve the problem, as some drivers will use the
same synchronization primitives anyway.  Some drivers (e.g.  the NRF5
entropy driver) provide an API to be used by ISRs that might be
suitable here, but not all drivers do that.

Signed-off-by: Leandro Pereira <51c7437a02b34df685e6b4ecb2e9bca23efe2e1a@intel.com>

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