removed unnecessary chil_semaphore from thread struct
Placed semaphore instead of lock in syscall