Plugins: make plugin_capture_data() use libiio