Move renderer cvar handling out of GLimp_EndFrame

With smp enabled, it could cause a freeze when switching the fullscreen mode because the renderer thread waits for the main thread to receive the window events, but the main thread is waiting on the renderer thread to send the renderCompletedEvent.