Better lock owner returning
Statistis refactorization.

* Support all the statistics for all transaction classes

* Class to validate the statistics