Add invalidation barriers for `displaysize` and `implicit_typeinfo` (#56159)
These are invalidated by our own stdlibs (Dates and REPL) unfortunately
so we need to put this barrier in.
This fix is _very_ un-satisfying, because it doesn't do anything to
solve this problem for downstream libraries that use e.g. `displaysize`.
To fix that, I think we need a way to make sure callers get these
invalidation barriers by default...