If static task cleanup option is enabled, then before invoking application defined `vPortCleanUpTCB` hook, pthread specific cleanup is performed. Signed-off-by: Mahavir Jain <mahavir@espressif.com>
Refactors LWIP to use this for the LWIP thread local semaphore