class.smbprocess.php: use foreach to loop over file handles

Somewhat cleaner than using a for() loop, because we don't need to hardcode
the size of the array.