openat: reduce syscalls in first probe of /proc open/access/close is cheaper than open/stat/stat/close. Use O_DIRECTORY for safety. * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd be a directory. Simplify the probe for .. bugs. * modules/openat (Depends-on): Drop same-inode. Reported by Bastien ROUCARIES. Signed-off-by: Eric Blake <eblake@redhat.com>