Rollup merge of #59809 - Zoxc:trait_methods_not_found, r=estebank
Rollup merge of #59809 - Zoxc:trait_methods_not_found, r=estebank

Make trait_methods_not_found use a lock

r? @estebank

graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust