Fixed a type that caused false negatives in lock

* owner() would not return true on objects testing on an object with the
same owner.