Sofia Gubaidulina’s work, with its thorniness and religious themes, put her at odds with the Soviet government.