fix #52531, fix the effects modeling of `QuoteNode` (#52548)
What observed in #52531 is that `QuoteNode` can embed global variables
that users can modify. Therefore, when dealing with `QuoteNode`, it's
necessary to taint its `:inaccessiblememonly` just like we do for
`GlobalRef`.
- fixes #52531
- replaces #52536