Surely only one pilot can honestly log IMC if he is the sole manipulator of the controls. Based on that premise, the instructor should not log IMC if he is not physically handling the controls.
Logging IMC if the aircraft is on autopilot is really cheating, isn't it? Let's be honest here - there is no handling skill in flying on autopilot.