afsocket: fix for platforms which not support credential passing

Fixes #298

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>
Merge pull request #303 from lbudai/3.6/fix-credential-passing

afsocket: fix for platforms which not support credential passing