SA court extends sentence for sex offender