Linear Search In C Recursive Mutex