Adding thread join to the mutex test case