Merge pull request #8456 from jordan-woyak/input-gate-race-fix InputCommon: Make the "input gate" not racy.