move discover threading to poll thread, create a thread for each dirsync module