X-ray properties of the Parkes sample of flat-spectrum radio sources: dust in radio-loud quasars?