Added lock when adding sentinel server