Revert "Only mark events for deferred sending if a debugger isn't attached,"
it breaks re-attaching, needs a better fix (possible race condition here)
Fixes #539110

This reverts commit 88a3c6ea60c564f29908300424b3685532c606b2.
Update build script for new agents.