[lab4-part1] add debug printf and fix some bugs.
[lab4-part1] lock_client_cache acquire.
[lab4-part1] lock_client_cache release