add lock-lib
Merge pull request #1 from xkxin/withlib

add lock-lib