More than 17,000 people have been told to leave their homes in southern California after a wildfire threatened properties.