Don't try to update a project's external service caches on a secondary Geo node

Guard a writing operation that can break in Geo (#76 (closed)) secondary node

See: https://gitlab.com/gitlab-org/gitlab-ee/issues/1744

/cc @stanhu @brodock