change logic a little in lock.c
Merge branch 'master' of https://github.com/shadows89/OS_hw3