netevent: remove automatic variable in register_netevent_notifier()