[jit] Fix enum->int casts in gsharedvt code. Fixes #21893.
[runtime] Fix Process.PrivateMemorySize64 etc. on ios. Fixes #21882.