[client] Fix a bug on worktree watching on Linux.
Implement new sync loop.