WA man has indefinite jail term overturned