eal: fix possible crash in hotplug