shell: kernel: fix interrupt stack size calculation on SMP

When calculating the size of unused interrupt stacks on SMP,
the "unused" variable is not cleared between CPUs. So this
value keeps incrementing and does not reflect actual unused
size for CPUs other than the first one. So clear the "unused"
variable for each CPU.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
diff --git a/subsys/shell/modules/kernel_service.c b/subsys/shell/modules/kernel_service.c
index db434eb..135de59 100644
--- a/subsys/shell/modules/kernel_service.c
+++ b/subsys/shell/modules/kernel_service.c
@@ -180,7 +180,7 @@
 			     size_t argc, char **argv)
 {
 	uint8_t *buf;
-	size_t size, unused = 0;
+	size_t size, unused;
 
 	ARG_UNUSED(argc);
 	ARG_UNUSED(argv);
@@ -194,6 +194,7 @@
 		buf = Z_KERNEL_STACK_BUFFER(z_interrupt_stacks[i]);
 		size = K_KERNEL_STACK_SIZEOF(z_interrupt_stacks[i]);
 
+		unused = 0;
 		for (size_t i = 0; i < size; i++) {
 			if (buf[i] == 0xAAU) {
 				unused++;