The best correction that makes it clear what the antecedent is for "it" is:
When she removed the jacket and looked at the lining, the lining had a large hole.
This option explicitly states that "the lining" is what had the large hole, removing any ambiguity.