Driver Core: fix bug in device_rename() for SYSFS_DEPRECATED=y