A mother who held a woman captive as a slave inside her "squalid" home for 25 years has been sentenced to 13 years.