Arthur Rinderknech and Valentin Vacherot, cousins from Monaco, stunned the Shanghai Masters by reaching the ATP Masters 1000 final, defeating Novak Djokovic and Daniil Medvedev.