Current realization of LwIP's sys_arch.cpp sys_arch_sem_wait() function calls osSemaphoreWait() function from CMSIS-RTOS API, that's prohibited to use while we are in interrupt handler.
It should be rewritten to use ISR-safe methods, e. g. queue or mailbox.