Document wearLock and wearLockExpire

First attempt to understand wearLock and wearLockExpire fully -
to debug easier.