Fix a few leaks in the Windows UI code.
Clean up double creation of memory debugger.
Optimize symbol map in debug mode a bit more.

Avoid UpdateActiveSymbols().
Allow double PSP_Shutdown() without any error.

We call it in a few places to "ensure" shutdown, e.g. before resetting,
but there are cases of double-shutdown.  Let's allow it since there's
there shouldn't be any multithreading here.
Small optimization: avoid fallback if possible.

Speeds up symbol map loading a little bit (when inserting new items.)
Don't add to the symbol map what was found there.

Wasn't hurting anything, but slight hit on performance.
Optimize searching for existing symbols.

Checking every time is slow, we should just skip by the address.  Some is
just the locking overhead.
Store thunk regs on the stack, not a global.

This may even be more near active memory anyway, but it reduces the "64
bit address out of range" RIP issues a bit too.  It's currently impossible
to enable appverif memory checks and jit in 64-bit...

Avoided the 32-bit path because I'm less sure about alignment.
Don't need to check inited for PSP_Shutdown() now.
Merge pull request #5453 from unknownbrackets/jit-minor

Store thunk regs on the stack, not a global
Merge pull request #5452 from unknownbrackets/win-fixes

Clean up some Windows leaks, optimize symbol map a bit
Update native with rotation lock fix
Temporary: Exit "hard" on Android again.

This is to prevent more unforeseen issues like the rotation lock
problem in the bugfix release.

Will be reverted again later.
Update native with haptic feedback fix
Switch to file descriptors instead of FILE *.

This allows us to support the io modes more accurately, not truncating for create/write, etc.
Attempt to virtually handle truncation properly.

Fixes LittleBigPlanet save problem, at least on US.
Improve error handling when PARAM.SFO can't read.