local.c: Fix channel attributes when only shared attributes exist (2)

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>