FreeRTOS: Fix xStreamBufferReset function always crashing
FreeRTOS: Fix xStreamBufferReset function always crashing

This function resets the spinlock given as a parameter after taking it
(when entering the critical section). This then results in a panic once
it tries to exit the same critical section.

* Closes https://github.com/espressif/esp-idf/issues/7725

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf