nxsem_trywait
Use the non-blocking `nxsem_trywait` to try to take the semaphore during the interrupt handler.