Marc Marquez survived a late charge from Thomas Luthi to claim his second straight Moto2 pole position at Estoril.