Issue #23298 - Stem lengths incorrect after a note in a chord is moved an octave

Calculates new line of moved note at the beginning of the move process.

I'm not altogether happy with this patch as it simply duplicates code into the beginning of the move process without removing it from the end (ode currently exists in Note::updateAccidental()). The "problem" that this causes is mostly philosophical, and partly extended runtime, tho' I'm sure it's not noticeable.

The problem is solved in piano scores, without unwanted side effects.