I found that I can only beat terran mech with mass mutalisks and then later broodlord/infestor. You just have to get upgrades and not screw up the magic box. 1 missclick and you are dead. If the terran drops tanks you can go mass roach to deal with Thors more easily.

Also agressive expansions with lots of spines take advantage of his immobile force.