Fix lock expire
Merge pull request #4 from cvasseur/master

Fix lock expire