[dumper] Fix threads initialization