Don't report status on named pipes

Git skips entries in directories that are not S_ISDIR, S_ISREG, or
S_ISLNK, so let's make libgit2 do the same thing.
Merge pull request #2506 from libgit2/rb/ignore-pipes-etc

Don't report status on named pipes