Revert "[serialization] no transitive decl change (#92083)"

This reverts commit ccb73e88.

It looks like there are some bots complaining about the patch.
See the post commit comment in
https://github.com/llvm/llvm-project/pull/92083 to track it.
14 jobs for main
in 0 seconds and was queued for 0 seconds