Fix #2517,Add pid support for persistent connection in Redis

pfsockopen does not supports id. So I changed it stream_socket_client, to handles ids as well.