Add mutex to connections