sysfs: fix build errors: uevent with CONFIG_SYSFS=n