Ensure that pthread condition variable in logging is initialized