Johann Zarco took his second pole position of the season after a thrilling four-way 125cc qualifying fight at Misano.