Wanted sex offender finally surrenders to police