Add workaround for kernel bug for shared attributes on channels with extended names

Some older versions of the kernel do not handle shared attributes on channels
with extended names correctly. Add a workaround for detecting and correcting
these attributes.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>