Fix reentrancy (by thread id versus key)

Track more stats; don't construct StackFrames because they're
hellaciously expensive. VS2010 compatibility.