Tens of thousands of people have been ordered out of their homes in southern California over an overheated chemical storage tank.