runtime: fix LockOSThread
Fixes issue 6100.

R=golang-dev, dave, bradfitz, rsc
CC=golang-dev
https://codereview.appspot.com/12703045