cls_log: trim works in chunks, returns -ENODATA when done

Also created a higher level interface that iterates until
done.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>