Alpine's Pierre Gasly has lost his third-place finish from June's Monaco Grand Prix again after his penalties from the race were reinstated after a successful appeal by McLaren and Red Bull.