samples: boards: Remove deprcated k_call_stacks_analyze API
samples: boards: Remove deprcated k_call_stacks_analyze API

Replace deprecated k_call_stacks_analyze() API with
k_thread_foreach() API.

Signed-off-by: Ramakrishna Pallala <8cb5df094165bcc31e7d772ccd8d87d8c4d8f761@intel.com>

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