runtime: convert Stack to Go.

LGTM=khr
R=khr, josharian
CC=golang-codereviews
https://codereview.appspot.com/129510043