fix a bug in sentinel.c about pub/sub link

New sentinel will create pub/sub link (``ri->pc``) for both master instance and slave instance, so we should check pub/sub link for both master instance and slave instance, not just master instance (which old sentinel does).

All testes passed after fix.