Fix issue 20261: infinite recursion for non PAL threads (#20267)
Fix issue 20261: infinite recursion for non PAL threads (#20267)


poizan42/coreclr,cshung/coreclr,krk/coreclr,mmitche/coreclr,poizan42/coreclr,poizan42/coreclr,krk/coreclr,krk/coreclr,cshung/coreclr,wtgodbe/coreclr,mmitche/coreclr,krk/coreclr,wtgodbe/coreclr,mmitche/coreclr,krk/coreclr,poizan42/coreclr,mmitche/coreclr,krk/coreclr,wtgodbe/coreclr,wtgodbe/coreclr,cshung/coreclr,cshung/coreclr,poizan42/coreclr,wtgodbe/coreclr,cshung/coreclr,mmitche/coreclr,poizan42/coreclr,cshung/coreclr,mmitche/coreclr,wtgodbe/coreclr