I feel like Elon Musk is generally well-informed and thinks pretty far into the future.
While I don't know the answer myself, I am inclined to think that Elon's not just planning on running the company straight into a widely foreseeable dead-end. Seems unlikely, don't you think?
Like, imagine this interview:
Interviewer: What is your plan for when lithium reserves run out?
Elon: Wait, what? There's a limited supply? Hold on, need to google this.
Take 2:
Interviewer: What is your plan for when lithium reserves run out?
Elon: Oh, I'm sure we'll figure something out, cross that bridge when we get there.
(Has he EVER given an answer like that, politician-style? No. Never.)
Seems like a safe bet that this imagined problem has a solution which hasn't been shared with us because nobody's asked him.