ISPN-5089 Store divisors in a temporary variable to avoid java.lang.ArithmeticException: / by zero
ISPN-5076 Pessimistic transactions can lose their locks when the primary owner changes

Test only