The Coalition's move to impose mandatory prison sentences will act "as a deterrent" for child sex offenders, according to Queensland senator Amanda Stoker.