Rain has long slowed the trains in the Northern California rail system. But a software upgrade is enabling gradual deceleration that is, so far, avoiding dramatic slowdowns in wet weather.