std: use sync::RwLock for internal statics
#100581
Merged
sync::RwLock for internal statics
#100581