fix(ProfilingPlugin): complete after the writeStream had finished flushing the data to the filesystem
fix(ProfilingPlugin): complete after the writeStream had finished flushing the data to the filesystem

Fixes a race-condition where `events.json` might not yet be available immediately after compilation.

EliteScientist/webpack,SimenB/webpack,SimenB/webpack,NekR/webpack,webpack/webpack,EliteScientist/webpack,SimenB/webpack,webpack/webpack,webpack/webpack,webpack/webpack,SimenB/webpack,NekR/webpack