Fixes for dir syncing in raft leader mode