__lock_count_locks
static u_int32_t __lock_count_locks __P((DB_LOCKREGION *));
usedlocks = lrp->maxlocks - __lock_count_locks(lrp);