Fix error deadlock

@slimsag can you test please
Sorry -- I didn't catch that you said that before. The code does not build because there is a typo: `GlfwError` should be `GLFWError`.

Aside from the typo, yes it does solve the issue both with and without the goroutine in place.

I think we should investigate why a simple select does not work on Windows before submitting this, though.