Create an autorelease pool in glfwPostEmptyEvent on non-main threads

This avoids leaks of the `NSEvent` objects.