tvhlog: fix logging when running as daemon

logging thread was started before fork() and thus killed off. Moved the
thread start to after fork() to ensure this doesn't happen.