Fix available routes check when selecting the default node
This MR fixes the Lua logic when checking available routes when selecting the default node.
On the other hand, default nodes and linking policy is also now reevaluated when the device EnumRoute
param changes, which is needed for devices that expose both the Headset node and Speakers node, and applications want to be auto-linked to the proper node when plugging and unplugging a headset.