Fixed killing children in pthread-mode for mode=="rsyncso" or mode=="so"