fix(ext/node): handle errors in sqlite session filter callback and ad… (#31756)
Closes https://github.com/denoland/deno/issues/31635
Fixes two issues in the `node:sqlite` module:
1. The filter handler in `applyChangeset` was panicking when the
JavaScript filter callback threw an exception. The code used `.unwrap()`
on the result of `filter.call()`, which returns `None` when an exception
is thrown. Added proper exception handling with `tc_scope` and a
`has_caught` flag to preserve the first exception.
2. The Session class was missing `Symbol.dispose` support, causing the
"session supports ERM" test to fail when using the `using` keyword.
Added `[Symbol.dispose]` to Session.prototype.