s3: add functions to flush the idmap memcache