add mutex to carbon tcp socket