Distributed: Fixed issue #2967 and #2942

problem with synchronization at startup (could cause a deadlock)