IB/ehca: Replace modulus operations in flush error completion path