Bug fix for log mutex clear issue