gpio: sysfs: repair export returning -EPERM on 1st attempt