libata: ensure host is free'd on error exit paths