Fix integer overflow in ecmult_multi_var when n is large
Summary:
This is a backport of secp256k1 PR568
Depends on D4985
Test Plan:
make check
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D4987