Fix issue preventing chunk allocation on recompilation

If another compilation occurred, the modules would be split out of the
main chunk, but then added to chunks from the last compilation, meaning
they wouldn't actually be emitted by webpack at the end.

Only hold on to chunk references w/in the scope of a single compilation.