gpiolib: fix poll(2) support reconfigure on sysfs polarity change