csync: Rework _csync_treewalk_visitor().
csync: Rework _csync_treewalk_visitor().

This fixes some possible null pointer defererences.

Found by Coverity.

meeh420/csync,gco/csync,gco/csync,gco/csync,meeh420/csync,meeh420/csync,gco/csync