migration: fix warning for source_return_path_thread