afsocket: fix for platforms which not support credential passing

Fixes #298

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>