Repair a verified behavior in apache/nuttx.
Repair a verified behavior in apache/nuttx.: a task in OriGent-RL-Data (Harbor dataset). SMP kernel crashes when switching to a task that is still running on another CPU
The task
SMP kernel crashes when switching to a task that is still running on another CPU
Part of henryen/OriGent-RL-Data.