Fixed calculation of "until" variable in the Lock()

Fixed calculation of "until" variable in the Lock() method - "m.Expiry" replaced to the local variable "expiry"
Merge pull request #3 from austinov/fix_origin

Fix calculation of "until" variable in the Lock() method