runtime: rename Lock to Mutex
Mutex is consistent with package sync, and when in the
unexported Go form it avoids having a conflcit between
the type (now mutex) and the function (lock).
LGTM=iant
R=golang-codereviews, iant
CC=dvyukov, golang-codereviews, r
https://golang.org/cl/133140043
diff --git a/src/pkg/runtime/syscall_windows.go b/src/pkg/runtime/syscall_windows.go
index 5ca9735..39d8fed 100644
--- a/src/pkg/runtime/syscall_windows.go
+++ b/src/pkg/runtime/syscall_windows.go
@@ -59,8 +59,8 @@
argsize += uintptrSize
}
- golock(&cbs.lock)
- defer gounlock(&cbs.lock)
+ lock(&cbs.lock)
+ defer unlock(&cbs.lock)
n := cbs.n
for i := 0; i < n; i++ {