Don't dead lock when all the files are removed

SyncEngine is on the main thread, no need of the legacy BlockingConnection
Make sure we do not remove files that are replaced by a symlink

As we ignore symlink, we should not remove on the server the files that
are ignored.

Change tested in t4.pl

Relates to #1299