9ns: Clean up the dir->mode bits