rowcache: bug fix on closing of CachePool

@alainjobart @shrutip