[la] add assertion to generic lgmres solver