Bug 1031143: Make CaptureCurrentStack accept an optional limit on the number of frames captured. r=shu