windows agent: bugfix: wait for plugins to finish when caching is disabled