runtime: mark functions as static where possible

Update issue 8092

LGTM=dvyukov
R=golang-codereviews, minux, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/122250043

Committer: Dmitriy Vyukov <dvyukov@google.com>