Fix a PAL spin lock issue (#19604)
Fix a PAL spin lock issue (#19604)

Fix for https://github.com/dotnet/coreclr/issues/18486
- Lock release needs to be at least volatile
poizan42/coreclr,wtgodbe/coreclr,cshung/coreclr,poizan42/coreclr,poizan42/coreclr,krk/coreclr,cshung/coreclr,mmitche/coreclr,krk/coreclr,cshung/coreclr,cshung/coreclr,poizan42/coreclr,wtgodbe/coreclr,wtgodbe/coreclr,krk/coreclr,krk/coreclr,wtgodbe/coreclr,cshung/coreclr,mmitche/coreclr,poizan42/coreclr,wtgodbe/coreclr,mmitche/coreclr,poizan42/coreclr,krk/coreclr,cshung/coreclr,wtgodbe/coreclr,mmitche/coreclr,mmitche/coreclr,mmitche/coreclr,krk/coreclr