gdb/infrun: add inferior parameters to stop_all_threads and restart_threads