updated length test in writeLockState and fixed last of the compile issues

Changes

RevisionDateWhoCommit message
0:ed0152b5c495 2016-09-19 roywant Initial commit default tip