tests/kernel/smp: Add SMP switch torture test

Formalize and rework the issue reproducer for #40795 and add it to the
SMP test suite.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
4 files changed