Material ID for linked objects

Hi,

I have a scene with a lot of linked furniture models. The client keeps changing the furniture materials. I can not seem to find away to set up an ID material mask for the linked objects materials. It would be much easier to do this in post with a material ID passes. Anyone know how to accomplish this?

Thanks