Added and wrote lock_cond.c/.h