threads.cxx: Make sure AbstractThread::flags is initialized to 0.
threads.cxx: Use LogLog by reference instead of by pointer.