cmTarget: Refactor internal imported LinkInterface map

Create the map entry up front and store in it a boolean value indicating
whether the LinkInterface structure has been populated.  This approach
leads to shorter code that is easier to follow too.
Merge topic 'refactor-link-internals' into next

1ca0c0e9 cmTarget: Refactor internal imported LinkInterface map