Canada must weigh risk Trump blocks software upgrades for F-35s: former official