Internal: remove ForceSyncDirectory

Historical code, not used anymore.

Closes #7804