fixed a bug in libshardcache (arc resources were under-retained in some cases)