ivory-tower-freertos: Fix ring buffer wraparound assertions.