Added mutex to logger