I'm not totally sure why this happens, but it seems to fix your test case to enable View > Notation view options > Key signatures > Key signature changes affect all tracks.
I have intentionally turned off this option because now I can move items in time freely and key signatures stay with them instead of being written in a specific project time.