Tesla Inc. plans to lower production at its Shanghai factory, according to people familiar with the matter, in the latest sign demand in China isn’t meeting expectations.