tvhlog: add option to display the thread ID in log messages
mpegts: sorted some mistakes in mux tuning and also service enumeration

Added automatic mpegts_input instance numbering as required for service
enumeration.
mpegts: ensure that init scan timer is stopped when cancelling.

THis happens when a sub kicks the mux out and caused an assert() on
bad scan status (at timeout).