A woman convicted of murdering schoolgirl Caroline Glachan has died in prison.