Wait for the current event poll to finish publishing events after a request to pause the event loop. This is required to change the gluon cache directory.