vcap_get_locked_rule
elem = vcap_get_locked_rule(vctrl, id);
if (!vcap_get_locked_rule(ri->vctrl, ri->data.id))
ri = vcap_get_locked_rule(vctrl, id);