libata: fix double-completion on error