Adds two new DR events: post-attach and pre-detach. These help tools align instrumentation with points where all threads are under DR control, avoiding uneven thread execution during the incremental staggered attach and detach processes.
Adds some sanity tests that the events are called where they should be. Adding them to drmemtrace will be done separately.
Issue: #2039 (closed)