Early-type Galaxies in the Chandra COSMOS Survey