add LockOSThread and explicit GOMAXPROCS to ensure even more explicitly that we're running in the same thread for the duration