use RWlock when accessing os::env (take 2) This reverts commit acdca316c3 (#82877) i.e. redoes #81850 since the invalid unlock attempts in the child process have been fixed in #82949 r? `@joshtriplett`
acdca316c3