It doesn't really have the feel of a clockwork creature to me, but there is a Magical Construct template. In general, you apply it to any corporeal creature that is not a shapechanger, elemental, or ooze. It increases HD to d10, slows them down, armors them up, gives them one of a small...