Cynics may suggest that, by giving the problematic transport brief to Stephen Flynn, John Swinney hopes to de-fang a potential leadership rival