HORNETQ-1102 Take the locks in the right order.
Move Journal Record IDs constants into its own class.
Merge pull request #757 from FranciscoBorges/master

HORNETQ-1102 Take the locks in the right order.