On De-serialization, the transient variable lock get to their Default value ie null

On De-serialization, the transient variable lock get to their Default value ie null. 
- make sure that the lock is not null; if it is. initialise it
Merge pull request #2 from alexouzounis/master

On De-serialization, the transient variable lock is null JRA-19459