Transmission systems in or for locomotives or motor railcars with rotary prime movers