Coerce and casenum when we are querying for locks