Local backend: Enable buffer before writing samples in non-cyclic mode
Local backend: Enable buffer before writing samples in non-cyclic mode

With the low-speed interface, on devices that require cyclic buffers,
the buffer has to be enabled after the samples are written.

However, on devices that do not use the cyclic mode but the streaming
mode, the buffer has to be enabled prior to writing the samples. This
commit makes sure that this requirement is respected.

Signed-off-by: Paul Cercueil <73d292422978d45c9eeef455bb1b24a0db453722@analog.com>

sensarliar/libiio,sensarliar/libiio,Sunderfield/libiio,gburca/libiio,gburca/libiio,analogdevicesinc/libiio,gburca/libiio,sensarliar/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,Sunderfield/libiio,analogdevicesinc/libiio,Sunderfield/libiio