Thousands ordered to flee California wildfire near Yosemite