s3:idmap: add an allocate_id method to the idmap_methods struct.