cluster: STABLE32 - liblogthread: Avoid potetntial race when changing log files