Make iio_device_open fail if no channels have been enabled

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