Bug 586153 - Avoid tab panel ID collisions by using a monotonic counter; r=dolske