Tesla and a large Chinese firm each struck new deals with lithium producers, the latest sign that technology companies, car makers and other big users of lithium are rushing to secure supplies of the material used in electric car and cell phone batteries.