trafgen: Move common duplicate calls from xmit_*_or_die to main_loop

Also call xmit_precheck before accessing ctx (when calling
compile_packets).

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>