Fix issue where console stack values were getting overwritten inside a C++ function
Initialize mResetLocked too
Merge pull request #1026 from jamesu/fix_console_stack

Fix issue where console stack values were getting overwritten