Adding locks for listeners to NetworkDataManager.