s3: fix wrong invocations of talloc_realloc