Seems to be a problem with Nvidia drivers. glFlush does not work but glFinish does ensure correct multithreading.