fix #22646: Linked staves not working when adding instrument after creation