Fix unrefed pids in Redis (follows 1facc73 #1131)