[client] Fix repo syncing status display problem.

Should not display "waiting for sync" when a repo is in sync.
SyncInfo->head_commit is only set after checking the server.
But in the new sync loop design, checking with server can happen
after commit.