Add mutex to logger