Count how many times the goroutine has been locked to the os thread.
Otherwise we prematurely release the goroutine from the os thread
resulting in a crash, as the GIL locking mechanisms allow reentrance.