Cache the Buffer's sample size for faster access

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Optimize iio_channel_read[_raw] / iio_channel_write[_raw]

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>