utils: Unref/release pads in error cases when linking pads