Merge pull request #11563 from JosJuice/host-lock-cpu-fixups Follow-up fixes for "Properly lock CPU before accessing emulated memory"