fix #40301: ties can overlap staff lines

Spanner position is now represented relative to staff, not system, no more need to calculate staff offset in the code that allows ties (and slurs) to avoid staff lines.  There is aready a vtest for this (tie-1).