gsyncd: fix error of reading dir contents on mount

Change-Id: I0d65c800c2113478346868a6d596bf21752434e4