api: fix crash in vl_msg_api_free