An optimistic tx only locks keys that are modified. There will be no locks to free if the modification list is empty. The topology check could only offer a false positive so we do not do it in this case and rely only on non-empty modifications or remote locks collections.