Wait for promise resolution on all calls to activatePackage

This avoids a race condition where stylesheets would be added after all
packages were deactivated and leak into the next spec.