Fix event, semaphore, mutex create/open to request the maximum allowe… (dotnet/coreclr#12381)
Fix event, semaphore, mutex create/open to request the maximum allowed access
Functional fix for dotnet/coreclr#11306
- Ported dotnet/corert@dotnet/coreclr@
78fae17f5434839a8720603973ff53f27e27f916 to CoreCLR, see that commit for details on the hang during mutex creation that is also fixed by this change.
- Replaced all uses of the *_ALL_ACCESS flags relevant to events, semaphores, and mutexes
Commit migrated from https://github.com/dotnet/coreclr/commit/
ccd8dd1308c90b7495f182f5a7e121d25aa5e27b