sh/perf: Convert the hotplug notifiers to state machine callbacks