Don't allow to mutate cached `@attribute_names`
Don't allow to mutate cached `@attribute_names`

Similar with #39463.

yalab/rails,Vasfed/rails,kddeisz/rails,yalab/rails,Vasfed/rails,lcreid/rails,eileencodes/rails,rails/rails,esparta/rails,esparta/rails,Erol/rails,eileencodes/rails,yawboakye/rails,georgeclaghorn/rails,georgeclaghorn/rails,rails/rails,Envek/rails,kmcphillips/rails,Envek/rails,starknx/rails,BlakeWilliams/rails,yalab/rails,kmcphillips/rails,yahonda/rails,Vasfed/rails,bogdanvlviv/rails,Stellenticket/rails,schuetzm/rails,esparta/rails,lcreid/rails,repinel/rails,rafaelfranca/omg-rails,EmmaB/rails-1,schuetzm/rails,yawboakye/rails,rails/rails,EmmaB/rails-1,Edouard-chin/rails,repinel/rails,tgxworld/rails,yalab/rails,Erol/rails,Erol/rails,bogdanvlviv/rails,kddeisz/rails,yawboakye/rails,kddeisz/rails,vipulnsward/rails,Edouard-chin/rails,lcreid/rails,betesh/rails,betesh/rails,vipulnsward/rails,betesh/rails,georgeclaghorn/rails,bogdanvlviv/rails,tjschuck/rails,eileencodes/rails,Envek/rails,Edouard-chin/rails,yawboakye/rails,yahonda/rails,MSP-Greg/rails,Edouard-chin/rails,Envek/rails,Stellenticket/rails,BlakeWilliams/rails,BlakeWilliams/rails,yahonda/rails,rafaelfranca/omg-rails,joonyou/rails,repinel/rails,joonyou/rails,joonyou/rails,betesh/rails,georgeclaghorn/rails,BlakeWilliams/rails,starknx/rails,kmcphillips/rails,starknx/rails,schuetzm/rails,MSP-Greg/rails,repinel/rails,joonyou/rails,Stellenticket/rails,tjschuck/rails,rafaelfranca/omg-rails,vipulnsward/rails,tgxworld/rails,lcreid/rails,tgxworld/rails,Vasfed/rails,schuetzm/rails,tjschuck/rails,kddeisz/rails,tjschuck/rails,MSP-Greg/rails,kmcphillips/rails,Erol/rails,tgxworld/rails,eileencodes/rails,vipulnsward/rails,rails/rails,esparta/rails,yahonda/rails,EmmaB/rails-1,MSP-Greg/rails,Stellenticket/rails,bogdanvlviv/rails