On the nature of the absorber in IRAS 09104+4109: the X-ray and mid-infrared view