kernel shell, stacks shell commands: iterate unlocked on SMP

call k_thread_foreach_unlocked to avoid assertions caused
by calling shell_print while holding a global lock

Signed-off-by: Maxim Adelman <imax@meta.com>
(cherry picked from commit ecf2cb5932156c889b7886609a652abe79cc16fa)
1 file changed