Merge pull request #3794 from EmptyChaos/frame-advance-race Core: Add synchronization to state changes (Fix Frame Step and FIFO Player - Issue 8718)