core: Add support for secondary dirent type lookup
core: Add support for secondary dirent type lookup

On some systems readdir() may only return DT_UNKNOWN for the dirent
type. In such a case we need to do a secondary lookup e.g. with lstat to
figure out the real time (for our purposes we're only interested in
whether it's a directory or not).

pkarasev3/bluez,mapfau/bluez,silent-snowman/bluez,silent-snowman/bluez,ComputeCycles/bluez,ComputeCycles/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,silent-snowman/bluez,mapfau/bluez,pkarasev3/bluez,mapfau/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez