mem-cache: Add support for checking whether a cache is busy