LeakSanitizer detects memory leaks occasionally in GCC/Posix

I imagine the issue is that the call to vTaskEndScheduler does not signal the destruction of the thread. Related issue from 2021 vTaskEndScheduler for testing. I will take a deeper look.