A Perth mother will spend at least three years behind bars after failing to protect her eight-year-old daughter, who almost died from a sexually transmitted infection after being molested by her stepfather.