Log mutex memory leak fix.