Fix wait_for_termination on GNU Hurd (Bug#8467)