如何声明runtime.LockOSThread()和runtime.UnlockOSThread()

I could not able to find how to declare runtime.LockOSThread() and runtime.UnlockOSThread(). I define it like [runtime.LockOSThread()] some code [runtime.UnlockOSThread()]. But it is giving error,undefined: runtime.LockOSThread and undefined: runtime.UnlockOSThread. Can anybody suggest me how to define it ? For more, I define it like,

Routine 1 {
runtime.LockOSThread()
do something
runtime.UnlockOSThread

}

main {
routine1
}

For example,

package main

import "runtime"

func routine() {
    runtime.LockOSThread()
    runtime.UnlockOSThread()
}

func main() {
    go routine()
}

When in doubt, refer to the documentation.

func LockOSThread()

LockOSThread wires the calling goroutine to its current operating system thread.
Until the calling goroutine exits or calls UnlockOSThread, it will always execute in
that thread, and no other goroutine can.

func UnlockOSThread()

UnlockOSThread unwires the calling goroutine from its fixed operating system thread.
If the calling goroutine has not called LockOSThread, UnlockOSThread is a no-op.