iio: fix: Keep a reference to the IIO device for open file descriptors