Speed improvement of glfwGetVideoMode/s on X11

Patch to resolve #347.
Note that I left `_glfwPlatformGetMonitorPos` as is because I'm not completely sure when someone wants to call this function, so the patch could break something in client's code (probably not, but just I'm not sure about it...). Should we patch it also?