dentry.c, security.c: Cleanups, fixes