iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL (CVE-2022-48801) | HOL Guard CVE