why does proc_create_data() test for "S_ISDIR(mode)"?