logind-acl: use macros

Simplify by using FOREACH_DIRENT and _cleanup_closedir_ macros.