[ty] Update salsa (#17937)
## Summary
* Update salsa to pull in https://github.com/salsa-rs/salsa/pull/850.
* Some refactoring of salsa event callbacks in various `Db`'s due to
https://github.com/salsa-rs/salsa/pull/849
closes https://github.com/astral-sh/ty/issues/108
## Test Plan
Ran `cargo run --bin ty -- -vvv` on a test file to make sure that salsa
Events are still logged.