Jannik Sinner matched Novak Djokovic's record winning streak at Masters 1000 tournaments with his 31st consecutive victory to reach the quarter-finals at the Italian Open.