gpiolib: introduce set_debounce method