RINGBUFFER: Replaced useless assert by a more strict one

Signed-off-by: Gama <misept.dieseneuf@gmail.com>