libata: improve AC_ERR_DEV handling for ->post_internal_cmd