A wildfire in southern California is threatening homes and has prompted evacuation orders for more than 10,000 people.