Considering that `nxsem_trywait` is non-blocking, although not recommended, it could be called from the interrupt handler.