s3: add functions to remove entries from idmap cache