agent: Fix wrong use of gcry_sexp_build_array