ISPN-3982 TransactionTable leaks memory when JTS is activated

* Some implementation has an unstable hash code. Use instead the identityHashCode()
Test that replaying a prepare command doesn't acquire the lock twice