Hamilton defies boos to take Hungarian pole with 100th win in sight