bugfix/shared_stack: Fix task stack not being replaced by shared stack correctly See merge request espressif/esp-idf!7956