Only unlock the game loop mutex when the REPL server is waiting.