The Tesla CEO threatened to leave California if the company doesn't get the green light to resume production.