gpio: sysfs: fix race between gpiod export and unexport