[matter] add clear_cache() to BaseBinaryPMS to clear memory caches