Merge pull request #838 from ochameau/tabevents-race

Bug 843500: Fix race condition in firefox tabs code between concurrent module instances. r=mossop(cherry picked from commit ea266834f3c3243dfd0a5f680988b2f3fa7477a8)