Around 40,000 people have been ordered to evacuate amid the threat of a chemical tank explosion in southern California.