gpiolib: add support for changing value polarity in sysfs