anv: add anv_batch_set_error() and anv_batch_has_error() helpers