The shape of the dark matter halo in the early‐type galaxy NGC 2974