Reorder create_remote_thread better