modules: do not try to add sysfs attributes if !CONFIG_SYSFS