chore: guard the overflow builtin in `sharecommon`

Use `__builtin_add_overflow` only under GCC and clang, as `lean.h` does, with an explicit `INT_MAX` test otherwise.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 file changed