smb: Improve enumeration performance

#306
Status Job ID Name Coverage
  Build
failed #155042
build

00:00:43

 
Name Stage Failure
failed
build Build
cc1: all warnings being treated as errors
[148/253] Compiling C object 'daemon/daemon@@gvfsd-smb-browse@exe/daemon-main-generic.c.o'.
[149/253] Compiling C object 'daemon/daemon@@gvfsd-ftp@exe/ParseFTPList.c.o'.
[150/253] Compiling C object 'daemon/daemon@@gvfsd-dnssd@exe/daemon-main.c.o'.
[151/253] Compiling C object 'daemon/daemon@@gvfsd-dnssd@exe/gvfsbackenddnssd.c.o'.
[152/253] Compiling C object 'daemon/daemon@@gvfsd-smb-browse@exe/gvfsbackendsmbbrowse.c.o'.
[153/253] Compiling C object 'daemon/daemon@@gvfsd-sftp@exe/gvfsbackendsftp.c.o'.
ninja: build stopped: subcommand failed.
ERROR: Job failed: exit code 1