Use bfd_cache_close, instead of accessing bfd->iostream directly.