mtd: avoid registering reboot notifier twice