migration/dirtyrate: adjust order of registering thread