Fix 21778 - misplaced clef change (please review)

Fix 21778 - misplaced clef change on lower staff when an upper staff has more chords in between. Code review is welcome!

For details of the issue, see: http://musescore.org/en/node/21778