New rules for homeschooling children could have helped bolster the safety of murdered 10-year-old Sara Sharif, an MP has suggested.