iio_widget.c: Fix the deactivating function of progress buttons

Signed-off-by: Dan Nechita <dan.nechita@analog.com>