Fix #17227 - Wrong transpositions in scores from templates

Fix #17227 - When creating a score from a template not in Concert Pitch, transposing instruments had wrong key signatures.

Corrected in mscore/file.cpp, by repeating the same test used in ver. 1.3