find_lock
if ((p = find_lock(idx, fp)) == NULL) {
if ((p = find_lock(idx, fp)) != NULL && p->owner == pthread_self()) {