Create an autorelease pool on Mac OS X when using `glfwPostEmptyEvent` from another thread

This avoids leaks of the `NSEvent` objects.