libubus: fix a small memleak in ubus_register_event_handler()