ubusd_event: move strmatch_len to ubus_common.h