in function pthread_cond_wait and pthread_cond_timedwait, using pthread_mutex_unlock(mutex),
when status = tx_semaphore_get(semaphore_ptr, wait_option); returns status !=TX_SUCCESS,
it does not deal the mutex , making the mutex unlock.
when next time using the mutex, found tx_mutex_ownership_count ==0, return error.
in function pthread_cond_wait and pthread_cond_timedwait, using pthread_mutex_unlock(mutex), when status = tx_semaphore_get(semaphore_ptr, wait_option); returns status !=TX_SUCCESS, it does not deal the mutex , making the mutex unlock. when next time using the mutex, found tx_mutex_ownership_count ==0, return error.