fix compile
Sync scheduling: Never enqueue a folder while it is synced.

Issues: #2268, #2275