Canada rejected battery maker Electrovaya for a loan so it opened a factory in the U.S. Did Ottawa unwittingly do it a big favour?