[LIBS] Add API to clear or empty the FIFO

Signed-off-by: Anup Patel <anup@brainfault.org>