Emergency crews have been pumping water out of a private dam in the Adelaide Hills where 40 homes are at risk of being flooded.