Name the Hibernate SessionFactory
Cosmetic on MemoryLockService

- Fix typo in method name
- Fix typo in error message
- Move the call to buildKey outside of the synchronized block
Robustness on MemoryLockService

Ensure that the call on the Lock was done on good Lock object.