Ensure LoggerThread::stop() doesn’t cause deadlock.

Can’t hold the logQueue lock when calling wakeAll()
Display leaked objects when exiting mythbackend if compiled with leak trace