Fixed erroneous MemoryLockService behaviour on getDetailsOnLock() when a .lock() exception occurs.
changed toString, hashCode, equals methods to investigate on some randomly failing test on CI: org.bonitasoft.engine.bpm.bar.ProcessDefinitionBARContributionTest.serializeDeserializeProcessDefinition()