Set sig_update_tree before creating DirTreeMonitor (fixed race condition).