link: Only mark a link as 'configured' when it actually is
If the transport-specific config fails then the link can be left
unconfigured, but marked as 'configured'.
I've only moved the setting of 'configured' flag itself rather than
the rest of the values in case the transport-specific code wants
to change them for any reason.