Fix Sentinel pending commands counting.
Fix Sentinel pending commands counting.

This bug most experienced effect was an inability of Redis to
reconfigure back old masters to slaves after they are reachable again
after a failover. This was due to failing to reset the count of the
pending commands properly, so the master appeared fovever down.

Was introduced in Redis 3.2 new Sentinel connection sharing feature
which is a lot more complex than the 3.0 code, but more scalable.

Many thanks to people reporting the issue, and especially to
@sskorgal for investigating the issue in depth.

Hopefully closes #3285.

antirez/redis,spinlock/redis,pmem/redis,arijitvt/redis,Markgorden/redis,colstrom/redis,sunheehnus/redis,oranagra/redis,ofirluzon/redis,h0x91b/redis,nnog/redis,PKRoma/redis,GitHubMota/redis,PKRoma/redis,badboy/redis,oranagra/redis,GitHubMota/redis,soveran/redis,rogerchina/redis,nnog/redis,pmem/redis,hgl888/redis,arijitvt/redis,ofirluzon/redis,kensou97/redis,arijitvt/redis,charsyam/redis,Sciumo/redis,pmem/redis,GitHubMota/redis,neomantra/redis,charsyam/redis,ctripcorp/redis,ton31337/redis,soloestoy/redis,ctripcorp/redis,Sciumo/redis,yossigo/redis,soloestoy/redis,YongMan/redis,soloestoy/redis,dreamquster/redis,badboy/redis,sunheehnus/redis,oranagra/redis,zguangyu/redis,YongMan/redis,hgl888/redis,PKRoma/redis,colstrom/redis,zguangyu/redis,neomantra/redis,zguangyu/redis,badboy/redis,soveran/redis,ctripcorp/redis,PKRoma/redis,nnog/redis,neomantra/redis,Markgorden/redis,rogerchina/redis,OmarQunsul/graph-redis,badboy/redis,h0x91b/redis,spinlock/redis,neomantra/redis,yossigo/redis,h0x91b/redis,ofirluzon/redis,sunheehnus/redis,oranagra/redis,hgl888/redis,spinlock/redis,h0x91b/redis,dreamquster/redis,soveran/redis,yossigo/redis,antirez/redis,soveran/redis,ton31337/redis,charsyam/redis,yossigo/redis,Markgorden/redis,dreamquster/redis,antirez/redis,oranagra/redis,OmarQunsul/graph-redis,ton31337/redis,Markgorden/redis,rogerchina/redis,kensou97/redis,OmarQunsul/graph-redis,colstrom/redis,OmarQunsul/graph-redis,arijitvt/redis,hgl888/redis,charsyam/redis,ofirluzon/redis,nnog/redis,ctripcorp/redis,antirez/redis,kensou97/redis,dreamquster/redis,Sciumo/redis,Sciumo/redis,soloestoy/redis,zguangyu/redis,rogerchina/redis,YongMan/redis,kensou97/redis,pmem/redis,sunheehnus/redis,soloestoy/redis,YongMan/redis,ton31337/redis,neomantra/redis,charsyam/redis,ofirluzon/redis,spinlock/redis,PKRoma/redis,colstrom/redis,GitHubMota/redis,yossigo/redis