device: allow autoconnect on external

In some scenarios, autoconnect should not be blocked if the device is
activated on the external connection (e.g. autoconnect on the loopback
device).

Adding the `allow_autoconnect_on_external` flag to support such
behavior.
56 jobs for lo_support in 41 minutes and 57 seconds (queued for 11 seconds)