Bug 1050582 - Check we're on the correct thread in SetTimerOnMainThread. r=jesup