Transmission systems in or for locomotives or motor railcars with reciprocating piston steam engines having toothed, chain, friction, or belt gearing