Properly fill in the st_nlinks field for directories.

df now seems to work properly.