Fix a race condition in the Ruby RequestHandler thread spawning code.