Bug fix: call runtime.LockOSThread