iio_sys_obj: Fixed a bug related to destroying a context which is not valid