Finite subdirect products of rings and morita duality