redis_check_rdb_main(): create shared objects only if needed.
redis_check_rdb_main(): create shared objects only if needed.

Otherwise Valgrind will complain a memory leak under certain tests where
RDB checking is invoked from within Redis.

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