syscall: fix data races in LazyDLL/LazyProc
Reincarnation of https://golang.org/cl/6817086 (sent from another account). It is ugly because sync.Once will cause allocation of a closure. Fixes #4343. R=golang-dev, bradfitz, alex.brainman CC=golang-dev https://golang.org/cl/6856046
Showing
Please
register
or
sign in
to comment