pw_thread_freertos: Don't resume before scheduler is running
pw_thread_freertos: Don't resume before scheduler is running

Calling vTaskResume() before vTaskStartScheduler() can cause
port_YIELD() to be called, resulting in a crash either now or later.

It's safe to call xTaskResumeAll() instead, so apply the fix by only
using vTaskResume() is both that method and xTaskGetSchedulerState()
are available.

No-Docs-Update-Reason: bugfix
Change-Id: I07214c2a294a29ca579aac589e80ad9a90933104
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/56548
Pigweed-Auto-Submit: Scott James Remnant <6b88cbe64f92c5d64ffbf57d7b3d2efc0467fe34@google.com>
Commit-Queue: Auto-Submit <14637eda5603879df170705285bf30f5996692f0@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <69344103cc60b36d6e1fbdc31ce6504b2286c646@google.com>

google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed