Merge pull request #9623 from Techjar/pauseandlock-fix Core: Fix PauseAndLock segfaulting under certain circumstances