use linkid in metric to avoid races
Revert "openwrt: switch to 2-stage platform commit"

This reverts commit faaa2ec8985a773f975efda8fae2161890b3f304.