Attempt to fix InstanceLockCompare.