ring: add shl_ring_copy()

The shl_ring_copy() helper copies data from the ring-buffer into an
external linear buffer allocated by the caller.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>