[kernel] fixes gpio_dev un/reload balancing