fixed a memory leak happening if no value pointer was provided to shardcache_client_get()
minor cleanings and micro optimizations
just a note
some more cleanings and micro optimizations
there is no need to check the log level before calling the SHC_DEBUG macros
same as previous commit