So Lewis had lapped every car on the track. Usually when there is a safety car EVERY lapped car is told that they are allowed unlap themselves to go past the safety car and return to track position behind those that have lapped them. OR you don't allow them to unlap themselves and then restart the race with everyone in the same position as they were when the safety car was called out. What was crazy here is Masi the race director decided that only the five cars between Lewis and Max were allowed to unlap themselves AND THEN immediately call in the safety car (the regulations say that if you were to let cars unlap themselves, the safety car pits the lap after the final car has unlapped itself - which would have meant the safety car staying out until the end of the race). This is against all the agreed upon regulations and just meant that Max who had fresh and softer tires was no allowed to get right behind Lewis (when he previously was like 13 seconds behind / had 5 lapped cars to pass).
The only two ways the race should have finished were either:
1, let all the lapped cars unlap themselves and bring the safety car in the following lap, therefore finishing the race under safety car and giving Lewis the WDC
2, Pit the safety car and for the final lap Lewis would have been in front of those five cars and whilst they would have had to get out of the way for Max, it would have taken a lot longer than the 2 seconds Max ended up winning by. Therefore Lewis would have been WDC.