Allies of Pakistan 's president , Gen. Pervez Musharraf , scored major gains in the first two rounds of local government elections , a development likely to further consolidate General Musharraf 's grip on power ahead of the general elections scheduled for 2007 , political analysts say .